summaryrefslogtreecommitdiff
path: root/src/include/catalog/pg_extension.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-01-27 20:16:17 +0200
committerPeter Eisentraut <peter_e@gmx.net>2012-01-27 20:16:17 +0200
commit8137f2c32322c624e0431fac1621e8e9315202f9 (patch)
tree8a951ae9cc44d87c7e9d1b09d40396dd7e67d139 /src/include/catalog/pg_extension.h
parent8a3f745f160d8334ad978676828d3926ac949f43 (diff)
downloadpostgresql-8137f2c32322c624e0431fac1621e8e9315202f9.tar.gz
Hide most variable-length fields from Form_pg_* structs
Those fields only appear in the structs so that genbki.pl can create the BKI bootstrap files for the catalogs. But they are not actually usable from C. So hiding them can prevent coding mistakes, saves stack space, and can help the compiler. In certain catalogs, the first variable-length field has been kept visible after manual inspection. These exceptions are noted in C comments. reviewed by Tom Lane
Diffstat (limited to 'src/include/catalog/pg_extension.h')
-rw-r--r--src/include/catalog/pg_extension.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/include/catalog/pg_extension.h b/src/include/catalog/pg_extension.h
index 606ed9a2af..b07b43cf7e 100644
--- a/src/include/catalog/pg_extension.h
+++ b/src/include/catalog/pg_extension.h
@@ -34,15 +34,12 @@ CATALOG(pg_extension,3079)
Oid extowner; /* extension owner */
Oid extnamespace; /* namespace of contained objects */
bool extrelocatable; /* if true, allow ALTER EXTENSION SET SCHEMA */
-
- /*
- * VARIABLE LENGTH FIELDS start here.
- *
- * extversion should never be null, but the others can be.
- */
+#ifdef CATALOG_VARLEN /* variable-length fields start here */
+ /* extversion should never be null, but the others can be. */
text extversion; /* extension version name */
Oid extconfig[1]; /* dumpable configuration tables */
text extcondition[1]; /* WHERE clauses for config tables */
+#endif
} FormData_pg_extension;
/* ----------------