Rename some enums to use TABLE instead of REL.
authorAmit Kapila <akapila@postgresql.org>
Tue, 9 Nov 2021 03:09:33 +0000 (08:39 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 9 Nov 2021 03:09:33 +0000 (08:39 +0530)
commitb3812d0b9bcf00e8478186fc287940e17912248a
treecc99124e7267fcd48aa716bff79b4dcec46ef25c
parent57b5a9646d97a3e8a5b6b6d86b375cc8da6ac85c
Rename some enums to use TABLE instead of REL.

Commit 5a2832465f introduced some enums to represent all tables in schema
publications and used REL in their names. Use TABLE instead of REL in
those enums to avoid confusion with other objects like SEQUENCES that can
be part of a publication in the future.

In the passing, (a) Change one of the newly introduced error messages to
make it consistent for Create and Alter commands, (b) add missing alias in
one of the SQL Statements that is used to print publications associated
with the table.

Reported-by: Tomas Vondra, Peter Smith
Author: Vignesh C
Reviewed-by: Hou Zhijie, Peter Smith
Discussion: https://www.postgresql.org/message-id/CALDaNm0OANxuJ6RXqwZsM1MSY4s19nuH3734j4a72etDwvBETQ%40mail.gmail.com
src/backend/commands/publicationcmds.c
src/backend/parser/gram.y
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dump_sort.c
src/bin/psql/describe.c
src/include/nodes/parsenodes.h
src/test/regress/expected/publication.out