pgsql: Silence compiler warnings introduced by d87d548cd0.

2023-02-24 Thread Jeff Davis
Silence compiler warnings introduced by d87d548cd0. Reported-by: Justin Pryzby Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/05fc551796e82c451a6f2bc39d1eafb3be3d2657 Modified Files --

pgsql: Fix comment indentation and whitespace

2023-02-24 Thread Peter Eisentraut
Fix comment indentation and whitespace The previous layout satisfied pgindent but failed the git whitespace check. Fix by not putting the comment first in the line, which pgindent does not handle well. Discussion: https://www.postgresql.org/message-id/flat/480e3c67-b703-46ff-a418-d3b481d68372%4

pgsql: Disallow NULLS NOT DISTINCT indexes for primary keys

2023-02-24 Thread Daniel Gustafsson
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