On 2025-May-05, Jonathan S. Katz wrote:

> ### Other Highlights
> 
> Starting with PostgreSQL 18, data checksums, which are used to validate the 
> integrity of stored data, are now enabled by default on new PostgreSQL 
> clusters. You can choose to disable this behavior using the `initdb 
> --no-data-checksums` command.
> 
> `pg_createsubscriber` now supports an `--all` flag so you can create logical 
> replicas for all databases in an instance with a single command. 
> Additionally, PostgreSQL 18 lets you create the schema definition of a 
> foreign table using the definition of a local table using the `CREATE FOREIGN 
> TABLE ... LIKE` command.

In this section I would add the work on not-null and NOT ENFORCED
constraints, not because I think they are very important, but because
they have the potential to break stuff; and if they do, it would be very
useful to know before GA.  Maybe something like

  Some constraint features have been revised: foreign-key and check
  constraints can now be made NOT ENFORCED and altered into
  enforceability; not-null constraints now preserve their names as
  mandated by the SQL-standard, support the NOT VALID and NO INHERIT
  clauses, as well as behave more consistently on inheritance situations.


Now that I look again, I see no mention of temporal UNIQUE, PRIMARY KEY
and FOREIGN KEY constraints (commits fc0438b4e805 and 89f908a6d0ac).  I
think they are a very important feature, perhaps they even warrant a
section of their own.  So maybe I'd suggest to add a section
"### Constraints" and put all these things in there.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/


Reply via email to