pgsql: Use DECLARE_TOAST_WITH_MACRO() to simplify toast-table declarati
От | Tom Lane |
---|---|
Тема | pgsql: Use DECLARE_TOAST_WITH_MACRO() to simplify toast-table declarati |
Дата | |
Msg-id | E1nhZGI-000S0S-KA@gemulon.postgresql.org обсуждение исходный текст |
Список | pgsql-committers |
Use DECLARE_TOAST_WITH_MACRO() to simplify toast-table declarations. This is needed so that renumber_oids.pl can handle renumbering shared catalog declarations, which need to provide C macros for the OIDs of the shared toast table and index. The previous method of writing a C macro separately was error-prone anyway. Also teach renumber_oids.pl about DECLARE_UNIQUE_INDEX_PKEY, as we missed doing when inventing that macro. There are no changes to postgres.bki here, so no need for a catversion bump. Discussion: https://postgr.es/m/2995325.1650487527@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/40eba064b24d98e343b45ccef6907fe8c9784dc1 Modified Files -------------- src/backend/catalog/Catalog.pm | 11 +++++++++++ src/backend/catalog/genbki.pl | 10 ++++++++++ src/include/catalog/genbki.h | 6 +++++- src/include/catalog/pg_authid.h | 4 +--- src/include/catalog/pg_database.h | 4 +--- src/include/catalog/pg_db_role_setting.h | 4 +--- src/include/catalog/pg_parameter_acl.h | 4 +--- src/include/catalog/pg_replication_origin.h | 4 +--- src/include/catalog/pg_shdescription.h | 4 +--- src/include/catalog/pg_shseclabel.h | 4 +--- src/include/catalog/pg_subscription.h | 4 +--- src/include/catalog/pg_tablespace.h | 4 +--- src/include/catalog/renumber_oids.pl | 27 +++++++++++++++++++++++---- 13 files changed, 58 insertions(+), 32 deletions(-)
В списке pgsql-committers по дате отправления: