postgresql/src/bin
Tom Lane ca9e792749 Fix pg_dump's failure to honor dependencies of SQL functions.
A new-style SQL function can contain a parse-time dependency
on a unique index, much as views and matviews can (such cases
arise from GROUP BY and ON CONFLICT clauses, for example).
To dump and restore such a function successfully, pg_dump must
postpone the function until after the unique index is created,
which will happen in the post-data part of the dump.  Therefore
we have to remove the normal constraint that functions are
dumped in pre-data.  Add code similar to the existing logic
that handles this for matviews.  I added test cases for both
as well, since code coverage tests showed that we weren't
testing the matview logic.

Per report from Sami Imseih.  Back-patch to v14 where
new-style SQL functions came in.

Discussion: https://postgr.es/m/2C1933AB-C2F8-499B-9D18-4AC1882256A0@amazon.com
2023-06-04 13:05:54 -04:00
..
initdb Translation updates 2023-05-08 14:29:57 +02:00
pg_amcheck Translation updates 2023-05-08 14:29:57 +02:00
pg_archivecleanup Translation updates 2023-05-08 14:29:57 +02:00
pg_basebackup Translation updates 2023-05-08 14:29:57 +02:00
pg_checksums Translation updates 2023-05-08 14:29:57 +02:00
pg_config Translation updates 2023-05-08 14:29:57 +02:00
pg_controldata Translation updates 2023-05-08 14:29:57 +02:00
pg_ctl Translation updates 2023-05-08 14:29:57 +02:00
pg_dump Fix pg_dump's failure to honor dependencies of SQL functions. 2023-06-04 13:05:54 -04:00
pg_resetwal Translation updates 2023-05-08 14:29:57 +02:00
pg_rewind Translation updates 2023-05-08 14:29:57 +02:00
pg_test_fsync Translation updates 2023-05-08 14:29:57 +02:00
pg_test_timing Translation updates 2023-05-08 14:29:57 +02:00
pg_upgrade Translation updates 2023-05-08 14:29:57 +02:00
pg_verifybackup Translation updates 2023-05-08 14:29:57 +02:00
pg_waldump Translation updates 2023-05-08 14:29:57 +02:00
pgbench Fix pgbench in prepared mode with an empty pipeline 2023-05-25 12:36:18 +02:00
pgevent Update copyright for 2022 2022-01-07 19:04:57 -05:00
psql Tighten usage of PSQL_WATCH_PAGER. 2023-05-12 16:11:14 -04:00
scripts Translation updates 2023-05-08 14:29:57 +02:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00