postgresql/src/backend/catalog
Daniel Gustafsson d959523257 Disallow NULLS NOT DISTINCT indexes for primary keys
A unique index which is created with non-distinct NULLS cannot be
used for backing a primary key constraint.  Make sure to disallow
such table alterations and teach pg_dump to drop the non-distinct
NULLS clause on indexes where this has been set.

Bug: 17720
Reported-by: Reiner Peterke <zedaardv@drizzle.com>
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/17720-dab8ee0fa85d316d@postgresql.org
2023-02-24 11:09:50 +01:00
..
.gitignore Build in some knowledge about foreign-key relationships in the catalogs. 2021-02-02 17:11:55 -05:00
aclchk.c Refactor recordExtObjInitPriv() 2023-01-17 20:06:06 +01:00
catalog.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
Catalog.pm Update copyright for 2023 2023-01-02 15:00:37 -05:00
dependency.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
genbki.pl Update copyright for 2023 2023-01-02 15:00:37 -05:00
heap.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
index.c Disallow NULLS NOT DISTINCT indexes for primary keys 2023-02-24 11:09:50 +01:00
indexing.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
information_schema.sql Update copyright for 2023 2023-01-02 15:00:37 -05:00
Makefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
namespace.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
objectaccess.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
objectaddress.c Fix object identity string for transforms 2023-02-13 14:03:09 +01:00
partition.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_aggregate.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_attrdef.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_cast.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_class.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_collation.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_constraint.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_conversion.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_db_role_setting.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_depend.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_enum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_inherits.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_largeobject.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_namespace.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_operator.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_parameter_acl.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_proc.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_publication.c Ignore dropped and generated columns from the column list. 2023-01-13 14:49:23 +05:30
pg_range.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_shdepend.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
pg_subscription.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_type.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
sql_feature_packages.txt Cleanup in SQL features files 2020-03-28 08:46:18 +01:00
sql_features.txt Implement ANY_VALUE aggregate 2023-02-22 09:33:07 +01:00
storage.c Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
system_functions.sql Invent random_normal() to provide normally-distributed random numbers. 2023-01-09 12:44:00 -05:00
system_views.sql Add pg_stat_io view, providing more detailed IO statistics 2023-02-11 09:52:15 -08:00
toasting.c Update copyright for 2023 2023-01-02 15:00:37 -05:00