RefLib

Reference library for AI

Back

postgresql_16:7.1.150.6 Compatibility

PostgreSQL 16 > Reference > SQL Commands > INSERT > Compatibility

INSERT conforms to the SQL standard, except that the RETURNING clause is a PostgreSQL extension, as is the ability to use WITH with INSERT, and the ability to specify an alternative action with ON CONFLICT. Also, the case in which a column name list is omitted, but not all the columns are filled from the VALUES clause or *query*, is disallowed by the standard. If you prefer a more SQL standard conforming statement than ON CONFLICT, see (see postgresql_16:7.1.154).

The SQL standard specifies that OVERRIDING SYSTEM VALUE can only be specified if an identity column that is generated always exists. PostgreSQL allows the clause in any case and ignores it if it is not applicable.

Possible limitations of the *query* clause are documented under (see postgresql_16:7.1.170).

Back