postgresql/src/bin
Michael Paquier 08691ea958 Rework some code handling pg_subscription data in psql and pg_dump
This commit fixes some inconsistencies found in the frontend code when
dealing with subscription catalog data.

The following changes are done:
- pg_subscription.h gains a EXPOSE_TO_CLIENT_CODE, so as more content
defined in pg_subscription.h becomes available in pg_subscription_d.h
for the frontend.
- In psql's describe.c, substream can be switched to use CppAsString2()
with its three LOGICALREP_STREAM_* values, with pg_subscription_d.h
included.
- pg_dump.c included pg_subscription.h, which is a header that should
only be used in the backend code.  The code is updated to use
pg_subscription_d.h instead.
- pg_dump stored all the data from pg_subscription in SubscriptionInfo
with only strings, and a good chunk of them are boolean and char values.
Using strings is not necessary, complicates the code (see for example
two_phase_disabled[] removed here), and is inconsistent with the way
other catalogs' data is handled.  The fields of SubscriptionInfo are
reordered to match with the order in its catalog, while on it.

Reviewed-by: Hayato Kuroda
Discussion: https://postgr.es/m/Z0lB2kp0ksHgmVuk@paquier.xyz
2024-12-03 09:48:12 +09:00
..
initdb initdb: Change default to using data checksums. 2024-10-16 08:48:10 +02:00
pg_amcheck pg_amcheck: Use CppAsString2() for relkind and relpersistence in queries 2024-11-26 09:45:34 +09:00
pg_archivecleanup Apply more quoting to GUC names in messages 2024-09-04 13:50:44 +09:00
pg_basebackup Remove unused #include's from bin .c files 2024-11-06 11:11:52 +01:00
pg_checksums Remove unused #include's from bin .c files 2024-11-06 11:11:52 +01:00
pg_combinebackup Clean up newlines following left parentheses 2024-11-26 17:10:07 +01:00
pg_config Remove unused #include's from bin .c files 2024-11-06 11:11:52 +01:00
pg_controldata Translation updates 2024-06-24 13:11:27 +02:00
pg_ctl Fix Y2038 issues with MyStartTime. 2024-10-07 13:51:03 -05:00
pg_dump Rework some code handling pg_subscription data in psql and pg_dump 2024-12-03 09:48:12 +09:00
pg_resetwal Translation updates 2024-06-24 13:11:27 +02:00
pg_rewind Fix newly introduced 010_keep_recycled_wals.pl 2024-11-21 17:04:26 +01:00
pg_test_fsync Remove unused #include's from bin .c files 2024-11-06 11:11:52 +01:00
pg_test_timing Convert some extern variables to static 2024-07-02 07:26:22 +02:00
pg_upgrade Fix pg_upgrade's cross-version tests when old < 18 2024-11-13 11:06:44 +01:00
pg_verifybackup File size in a backup manifest should use uint64, not size_t. 2024-10-02 09:59:04 -04:00
pg_waldump Translation updates 2024-06-24 13:11:27 +02:00
pg_walsummary Remove unused #include's from bin .c files 2024-11-06 11:11:52 +01:00
pgbench pgbench: Ensure previous progress message is fully cleared when updating. 2024-11-27 23:01:53 +09:00
pgevent meson: Build pgevent as shared_module rather than shared_library 2024-11-26 18:09:05 +01:00
psql Rework some code handling pg_subscription data in psql and pg_dump 2024-12-03 09:48:12 +09:00
scripts Remove unused #include's from bin .c files 2024-11-06 11:11:52 +01:00
Makefile Add new pg_walsummary tool. 2024-01-11 12:48:27 -05:00
meson.build Add new pg_walsummary tool. 2024-01-11 12:48:27 -05:00