summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2023-01-23 18:33:19 +0000
committerTom Lane2023-01-23 18:33:19 +0000
commit3cece34be842178a3c5697a58e03fb4a5d576378 (patch)
treeffa0b73de31f1ee420a5e877b74f24184fa4a132
parenta9dc7f9419e4f6cac419e195618dceac74846c83 (diff)
Remove special outfuncs/readfuncs handling of RangeVar.catalogname.
Historically we skipped writing/reading this field, but that no longer works under WRITE_READ_PARSE_PLAN_TREES since we expanded the coverage of that option to include utility commands (787102b56). Remove the special case and just treat this field normally. Bump catversion out of an abundance of caution --- I do not think we currently ever store RangeVar nodes in the catalogs, but perhaps I'm wrong. Per report from Pavel Stehule. Discussion: https://postgr.es/m/CAFj8pRAYvYu-qU7-NieqRRyaQZk-yr3UjtHQ2LR62PS9M1dZMA@mail.gmail.com
-rw-r--r--src/include/catalog/catversion.h2
-rw-r--r--src/include/nodes/primnodes.h7
2 files changed, 3 insertions, 6 deletions
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h
index 03be537054..823c70c47c 100644
--- a/src/include/catalog/catversion.h
+++ b/src/include/catalog/catversion.h
@@ -57,6 +57,6 @@
*/
/* yyyymmddN */
-#define CATALOG_VERSION_NO 202301231
+#define CATALOG_VERSION_NO 202301232
#endif
diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h
index 3bdde134f4..dec7d5c775 100644
--- a/src/include/nodes/primnodes.h
+++ b/src/include/nodes/primnodes.h
@@ -64,11 +64,8 @@ typedef struct RangeVar
{
NodeTag type;
- /*
- * the catalog (database) name, or NULL; ignored for read/write, since it
- * is presently not semantically meaningful
- */
- char *catalogname pg_node_attr(read_write_ignore, read_as(NULL));
+ /* the catalog (database) name, or NULL */
+ char *catalogname;
/* the schema name, or NULL */
char *schemaname;