postgresql/src/bin
Melanie Plageman d0d649e916 Limit pgbench COPY FREEZE to ordinary relations
pgbench client-side data generation uses COPY FREEZE to load data for most
tables. COPY FREEZE isn't supported for partitioned tables and since pgbench
only supports partitioning pgbench_accounts, pgbench used a hard-coded check to
skip COPY FREEZE and use plain COPY for a partitioned pgbench_accounts.

If the user has manually partitioned one of the other pgbench tables, this
causes client-side data generation to error out with:

ERROR:  cannot perform COPY FREEZE on a partitioned table

Fix this by limiting COPY FREEZE to ordinary tables (RELKIND_RELATION).

Author: Sergey Tatarintsev <s.tatarintsev@postgrespro.ru>
Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/flat/97f55fca-8a7b-4da8-b413-7d1c57010676%40postgrespro.ru
2025-02-11 16:52:08 -05:00
..
initdb initdb: Convert tests to use long options with fat comma style 2025-01-24 15:19:38 +09:00
pg_amcheck pg_amcheck: Fix test failure on Windows with non-existing role 2025-01-27 08:00:19 +09:00
pg_archivecleanup Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_basebackup Improve TAP tests of pg_basebackup 2025-01-23 15:15:36 +09:00
pg_checksums Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_combinebackup Refactor TAP test code for file comparisons into new routine in Utils.pm 2025-02-09 16:52:33 +09:00
pg_config Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_controldata pg_controldata: Fix possible errors on corrupted pg_control 2025-02-05 00:45:49 +02:00
pg_ctl Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_dump Specify the encoding of input to fmtId() 2025-02-10 10:03:37 -05:00
pg_resetwal Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_rewind Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_test_fsync Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_test_timing Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_upgrade Refactor TAP test code for file comparisons into new routine in Utils.pm 2025-02-09 16:52:33 +09:00
pg_verifybackup Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_waldump Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_walsummary Update copyright for 2025 2025-01-01 11:21:55 -05:00
pgbench Limit pgbench COPY FREEZE to ordinary relations 2025-02-11 16:52:08 -05:00
pgevent Update copyright for 2025 2025-01-01 11:21:55 -05:00
psql Eagerly scan all-visible pages to amortize aggressive vacuum 2025-02-11 13:53:48 -05:00
scripts Specify the encoding of input to fmtId() 2025-02-10 10:03:37 -05:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00