diff options
| author | Amit Kapila | 2025-01-28 05:12:46 +0000 |
|---|---|---|
| committer | Amit Kapila | 2025-01-28 05:12:46 +0000 |
| commit | 75eb9766ec201b62f264554019757716093e2a2f (patch) | |
| tree | 180098e8ce3a3be50dd9029b1cc157e19cf8c7ad /src/bin | |
| parent | 30a6ed0ce4bb18212ec38cdb537ea4b43bc99b83 (diff) | |
Rename pubgencols_type to pubgencols in pg_publication.
The column added in commit e65dbc9927, pubgencols_type, was inconsistent
with the naming conventions of other columns in the pg_publication
catalog.
Author: Vignesh C <vignesh21@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Discussion: https://postgr.es/m/CALDaNm1u-ufVOW-RUsXSooqzkpohxfZYy=z78fbcr_9Pq5hbCg@mail.gmail.com
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/pg_dump/pg_dump.c | 10 | ||||
| -rw-r--r-- | src/bin/psql/describe.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index af857f00c7c..02e1fdf8f78 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -4291,7 +4291,7 @@ getPublications(Archive *fout) int i_pubdelete; int i_pubtruncate; int i_pubviaroot; - int i_pubgencols_type; + int i_pubgencols; int i, ntups; @@ -4316,9 +4316,9 @@ getPublications(Archive *fout) appendPQExpBufferStr(query, "false AS pubviaroot, "); if (fout->remoteVersion >= 180000) - appendPQExpBufferStr(query, "p.pubgencols_type "); + appendPQExpBufferStr(query, "p.pubgencols "); else - appendPQExpBuffer(query, "'%c' AS pubgencols_type ", PUBLISH_GENCOLS_NONE); + appendPQExpBuffer(query, "'%c' AS pubgencols ", PUBLISH_GENCOLS_NONE); appendPQExpBufferStr(query, "FROM pg_publication p"); @@ -4339,7 +4339,7 @@ getPublications(Archive *fout) i_pubdelete = PQfnumber(res, "pubdelete"); i_pubtruncate = PQfnumber(res, "pubtruncate"); i_pubviaroot = PQfnumber(res, "pubviaroot"); - i_pubgencols_type = PQfnumber(res, "pubgencols_type"); + i_pubgencols = PQfnumber(res, "pubgencols"); pubinfo = pg_malloc(ntups * sizeof(PublicationInfo)); @@ -4365,7 +4365,7 @@ getPublications(Archive *fout) pubinfo[i].pubviaroot = (strcmp(PQgetvalue(res, i, i_pubviaroot), "t") == 0); pubinfo[i].pubgencols_type = - *(PQgetvalue(res, i, i_pubgencols_type)); + *(PQgetvalue(res, i, i_pubgencols)); /* Decide whether we want to dump it */ selectDumpableObject(&(pubinfo[i].dobj), fout); diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 2e84b61f184..aa4363b200a 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -6373,7 +6373,7 @@ listPublications(const char *pattern) gettext_noop("Truncates")); if (pset.sversion >= 180000) appendPQExpBuffer(&buf, - ",\n (CASE pubgencols_type\n" + ",\n (CASE pubgencols\n" " WHEN '%c' THEN 'none'\n" " WHEN '%c' THEN 'stored'\n" " END) AS \"%s\"", @@ -6507,7 +6507,7 @@ describePublications(const char *pattern) if (has_pubgencols) appendPQExpBuffer(&buf, - ", (CASE pubgencols_type\n" + ", (CASE pubgencols\n" " WHEN '%c' THEN 'none'\n" " WHEN '%c' THEN 'stored'\n" " END) AS \"%s\"\n", |
