postgresql/src/bin
Alexander Korotkov 5ae2087202 Teach contrib/amcheck to check the unique constraint violation
Add the 'checkunique' argument to bt_index_check() and bt_index_parent_check().
When the flag is specified the procedures will check the unique constraint
violation for unique indexes.  Only one heap entry for all equal keys in
the index should be visible (including posting list entries).  Report an error
otherwise.

pg_amcheck called with the --checkunique option will do the same check for all
the indexes it checks.

Author: Anastasia Lubennikova <lubennikovaav@gmail.com>
Author: Pavel Borisov <pashkin.elfe@gmail.com>
Author: Maxim Orlov <orlovmg@gmail.com>
Reviewed-by: Mark Dilger <mark.dilger@enterprisedb.com>
Reviewed-by: Zhihong Yu <zyu@yugabyte.com>
Reviewed-by: Peter Geoghegan <pg@bowt.ie>
Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Discussion: https://postgr.es/m/CALT9ZEHRn5xAM5boga0qnrCmPV52bScEK2QnQ1HmUZDD301JEg%40mail.gmail.com
2023-10-28 00:21:23 +03:00
..
initdb Restore proper linkage of pg_char_to_encoding() and friends. 2023-10-07 12:08:10 -04:00
pg_amcheck Teach contrib/amcheck to check the unique constraint violation 2023-10-28 00:21:23 +03:00
pg_archivecleanup Translation updates 2023-08-07 12:39:30 +02:00
pg_basebackup Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_checksums Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_config Translation updates 2023-08-07 12:39:30 +02:00
pg_controldata Replace use of stat()[7] by -s switch in TAP tests to retrieve file size 2023-10-03 08:27:34 +09:00
pg_ctl Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_dump Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_resetwal pg_resetwal: Corrections around -c option 2023-10-10 08:58:50 +02:00
pg_rewind Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_test_fsync Remove wal_sync_method=fsync_writethrough on Windows. 2023-07-14 12:30:13 +12:00
pg_test_timing Translation updates 2023-05-22 12:44:31 +02:00
pg_upgrade Commit b195e6d482 forgot to update meson.build. 2023-10-27 13:19:49 +05:30
pg_verifybackup Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_waldump Quote filenames in error messages 2023-09-14 11:17:33 +02:00
pgbench Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pgevent Update copyright for 2023 2023-01-02 15:00:37 -05:00
psql Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
scripts Add trailing commas to enum definitions 2023-10-26 09:20:54 +02: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