pgsql: Add PublicationTable and PublicationRelInfo structs

Поиск
Список
Период
Сортировка
Искать

pgsql: Add PublicationTable and PublicationRelInfo structs

От:
Alvaro Herrera <alvherre@alvh.no-ip.org>
Дата:
Add PublicationTable and PublicationRelInfo structs

These encapsulate a relation when referred from replication DDL.
Currently they don't do anything useful (they're just wrappers around
RangeVar and Relation respectively) but in the future they'll be used to
carry column lists.

Extracted from a larger patch by Rahila Syed.

Author: Rahila Syed 
Reviewed-by: Álvaro Herrera 
Reviewed-by: Tomas Vondra 
Reviewed-by: Amit Kapila 
Discussion: https://postgr.es/m/CAH2L28vddB_NFdRVpuyRBJEBWjz4BSyTB=_ektNRH8NJ1jf95g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0c6828fa987b791744b9c8685aadf1baa21f8977

Modified Files
--------------
src/backend/catalog/pg_publication.c   | 10 +++----
src/backend/commands/publicationcmds.c | 53 ++++++++++++++++++++++------------
src/backend/nodes/copyfuncs.c          | 12 ++++++++
src/backend/nodes/equalfuncs.c         | 11 +++++++
src/backend/parser/gram.y              | 26 +++++++++++++----
src/include/catalog/pg_publication.h   |  7 ++++-
src/include/nodes/nodes.h              |  1 +
src/include/nodes/parsenodes.h         |  5 ++++
src/tools/pgindent/typedefs.list       |  1 +
9 files changed, 95 insertions(+), 31 deletions(-)

FAQ