diff options
author | Amit Kapila | 2021-11-09 03:09:33 +0000 |
---|---|---|
committer | Amit Kapila | 2021-11-09 03:09:33 +0000 |
commit | b3812d0b9bcf00e8478186fc287940e17912248a (patch) | |
tree | cc99124e7267fcd48aa716bff79b4dcec46ef25c /src/bin/psql/describe.c | |
parent | 57b5a9646d97a3e8a5b6b6d86b375cc8da6ac85c (diff) |
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
Diffstat (limited to 'src/bin/psql/describe.c')
-rw-r--r-- | src/bin/psql/describe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 006661412ea..ea721d963a7 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -3162,7 +3162,7 @@ describeOneTableDetails(const char *schemaname, "UNION\n" "SELECT pubname\n" "FROM pg_catalog.pg_publication p\n" - "WHERE puballtables AND pg_catalog.pg_relation_is_publishable('%s')\n" + "WHERE p.puballtables AND pg_catalog.pg_relation_is_publishable('%s')\n" "ORDER BY 1;", oid, oid, oid, oid); } |