postgresql/src/backend
Tom Lane f52c5d6749 Forbid marking an identity column as nullable.
GENERATED ALWAYS AS IDENTITY implies NOT NULL, but the code failed
to complain if you overrode that with "GENERATED ALWAYS AS IDENTITY
NULL".  One might think the old behavior was a feature, but it was
inconsistent because the outcome varied depending on the order of
the clauses, so it seems to have been just an oversight.

Per bug #16913 from Pavel Boev.  Back-patch to v10 where identity
columns were introduced.

Vik Fearing (minor tweaks by me)

Discussion: https://postgr.es/m/16913-3b5198410f67d8c6@postgresql.org
2021-03-12 11:08:42 -05:00
..
access Add condition variable for recovery resume. 2021-03-12 19:45:42 +13:00
bootstrap Update copyright for 2021 2021-01-02 13:06:25 -05:00
catalog Track total amounts of times spent writing and syncing WAL data to disk. 2021-03-09 16:52:06 +09:00
commands VACUUM ANALYZE: Always update pg_class.reltuples. 2021-03-10 17:07:57 -08:00
executor Enable parallel SELECT for "INSERT INTO ... SELECT ...". 2021-03-10 07:38:58 +05:30
foreign Update copyright for 2021 2021-01-02 13:06:25 -05:00
jit Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
lib Update copyright for 2021 2021-01-02 13:06:25 -05:00
libpq Remove support for SSL compression 2021-03-09 11:16:47 +09:00
main Update copyright for 2021 2021-01-02 13:06:25 -05:00
nodes Enable parallel SELECT for "INSERT INTO ... SELECT ...". 2021-03-10 07:38:58 +05:30
optimizer Fix use of relcache TriggerDesc field introduced by commit 05c8482f7f. 2021-03-12 15:14:41 +05:30
parser Forbid marking an identity column as nullable. 2021-03-12 11:08:42 -05:00
partitioning Message style fix 2021-02-24 07:00:49 +01:00
po Translation updates 2020-05-18 12:49:30 +02:00
port Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
postmaster Poll postmaster less frequently in recovery. 2021-03-12 19:45:42 +13:00
regex Further tweak memory management for regex DFAs. 2021-03-08 16:32:29 -05:00
replication Add condition variable for walreceiver shutdown. 2021-03-12 19:45:42 +13:00
rewrite Revert "Propagate CTE property flags when copying a CTE list into a rule." 2021-02-07 12:54:08 -05:00
snowball Update snowball 2021-02-19 08:10:15 +01:00
statistics Update copyright for 2021 2021-01-02 13:06:25 -05:00
storage Specialize checkpointer sort functions. 2021-03-12 23:56:02 +13:00
tcop Remove server and libpq support for old FE/BE protocol version 2. 2021-03-04 10:45:55 +02:00
tsearch Fix parsing of complex morphs to tsquery 2021-01-31 20:14:29 +03:00
utils Don't consider newly inserted tuples in nbtree VACUUM. 2021-03-10 16:27:01 -08:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Use sort_template.h for qsort_tuple() and qsort_ssup(). 2021-03-03 17:02:32 +13:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00