diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-08-27 16:21:23 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-08-27 16:21:23 +0200 |
commit | 9b39b799db781642dd0c1424c28e827d19663e20 (patch) | |
tree | 8ae54d4d1d0830324392e16773f95f6b6a4a0184 /src | |
parent | a556549d7e6dce15fe216bd4130ea64239f4d83f (diff) | |
download | postgresql-9b39b799db781642dd0c1424c28e827d19663e20.tar.gz postgresql-9b39b799db781642dd0c1424c28e827d19663e20.zip |
Add some not null constraints to catalogs
Use BKI_FORCE_NOT_NULL on some catalog field declarations that are never
null (according to the source code that accesses them).
Diffstat (limited to 'src')
-rw-r--r-- | src/include/catalog/catversion.h | 2 | ||||
-rw-r--r-- | src/include/catalog/pg_attrdef.h | 4 | ||||
-rw-r--r-- | src/include/catalog/pg_default_acl.h | 2 | ||||
-rw-r--r-- | src/include/catalog/pg_policy.h | 2 | ||||
-rw-r--r-- | src/include/catalog/pg_rewrite.h | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index 3e1de385e5e..836d623776f 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 201807191 +#define CATALOG_VERSION_NO 201808271 #endif diff --git a/src/include/catalog/pg_attrdef.h b/src/include/catalog/pg_attrdef.h index 68800ffd8e4..e4a37ec3268 100644 --- a/src/include/catalog/pg_attrdef.h +++ b/src/include/catalog/pg_attrdef.h @@ -32,8 +32,8 @@ CATALOG(pg_attrdef,2604,AttrDefaultRelationId) int16 adnum; /* attnum of attribute */ #ifdef CATALOG_VARLEN /* variable-length fields start here */ - pg_node_tree adbin; /* nodeToString representation of default */ - text adsrc; /* human-readable representation of default */ + pg_node_tree adbin BKI_FORCE_NOT_NULL; /* nodeToString representation of default */ + text adsrc BKI_FORCE_NOT_NULL; /* human-readable representation of default */ #endif } FormData_pg_attrdef; diff --git a/src/include/catalog/pg_default_acl.h b/src/include/catalog/pg_default_acl.h index d0410f55868..aee49fdb6da 100644 --- a/src/include/catalog/pg_default_acl.h +++ b/src/include/catalog/pg_default_acl.h @@ -34,7 +34,7 @@ CATALOG(pg_default_acl,826,DefaultAclRelationId) char defaclobjtype; /* see DEFACLOBJ_xxx constants below */ #ifdef CATALOG_VARLEN /* variable-length fields start here */ - aclitem defaclacl[1]; /* permissions to add at CREATE time */ + aclitem defaclacl[1] BKI_FORCE_NOT_NULL; /* permissions to add at CREATE time */ #endif } FormData_pg_default_acl; diff --git a/src/include/catalog/pg_policy.h b/src/include/catalog/pg_policy.h index ea3765b1cbc..0dd9c50e536 100644 --- a/src/include/catalog/pg_policy.h +++ b/src/include/catalog/pg_policy.h @@ -34,7 +34,7 @@ CATALOG(pg_policy,3256,PolicyRelationId) bool polpermissive; /* restrictive or permissive policy */ #ifdef CATALOG_VARLEN - Oid polroles[1]; /* Roles associated with policy, not-NULL */ + Oid polroles[1] BKI_FORCE_NOT_NULL; /* Roles associated with policy */ pg_node_tree polqual; /* Policy quals. */ pg_node_tree polwithcheck; /* WITH CHECK quals. */ #endif diff --git a/src/include/catalog/pg_rewrite.h b/src/include/catalog/pg_rewrite.h index a385445884c..0e50b879265 100644 --- a/src/include/catalog/pg_rewrite.h +++ b/src/include/catalog/pg_rewrite.h @@ -38,8 +38,8 @@ CATALOG(pg_rewrite,2618,RewriteRelationId) bool is_instead; #ifdef CATALOG_VARLEN /* variable-length fields start here */ - pg_node_tree ev_qual; - pg_node_tree ev_action; + pg_node_tree ev_qual BKI_FORCE_NOT_NULL; + pg_node_tree ev_action BKI_FORCE_NOT_NULL; #endif } FormData_pg_rewrite; |