PostgreSQL 18 Released - What's New? |
Written by Nikos Vaggalis |
Monday, 13 October 2025 |
PostgreSQL 18 was released on September 25, boosting a Of course, the top of the list is occupied by the asynchronous I/O (AIO) subsystem, which can improve performance of sequential scans, bitmap heap scans, vacuums, and other operations. In simple terms, reading (sequential and bitmap scans) will be done async and as such will be much faster than before, For developers, allow CHECK and foreign key constraints to be specified as NOT ENFORCED. An FK is checked in instances when trying to delete rows from the parent table and there's rows in the child table referering to the parent table, or when doing updates the referenced rows must be locked. In both cases performance takes a hit and Enhancements to the COPY command - REJECT_LIMIT. The COPY command is the default utility that loads textual data as in CSV files into PostgreSQL tables. When the file contains type incompatibilities with the table's columns, errors would be fired and the rows in question are getting discarded. Now with the new clause, it becomes more fail safe as you can set a limit on the errors emitted that when crossed the full loading operation fails and everything is discarded, hence enforcing much better data quality and easing administrative pains. uuidv7() SQL function. PostgreSQL before version 18 was using UUID4. UUIDs are of course random strings which can be used as unique primary keys, and especially fit in distributed environments. However they were difficult to index since they're long random hexadedimal strings. UUID7 strings as specified in RFC 9652, begin with a time-based identifier with millisecond precision combining a Unix Epoch timestamp, followed with random bytes, to ensure uniqueness and sortability. Now since the first part is the timestamp, it means that timestamps that are close to each other are better clustered hence lead to better indexing. OAuth 2.0 support Now PostgreSQL becomes a resource server too, which can validate bearer tokens from external identity providers. Of course, these are just a select few. There's many more goodies to check out. You'll find all of then on the official release delta page. Link below. More InformationRelated ArticlesPostgreSQL Conferences In 2025
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info |
Last Updated ( Monday, 13 October 2025 ) |