summaryrefslogtreecommitdiff
path: root/src/backend/nodes/readfuncs.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2023-04-12 19:29:21 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2023-04-12 19:29:21 +0200
commit9ce04b50e120275afbc03ca0b80839dde3da8308 (patch)
treec9b815953349fc5bf689799108a2966fec755bf7 /src/backend/nodes/readfuncs.c
parent8e82db97b0a474008d8212a63f34e449a8c50bcd (diff)
Revert "Catalog NOT NULL constraints" and fallout
This reverts commit e056c557aef4 and minor later fixes thereof. There's a few problems in this new feature -- most notably regarding pg_upgrade behavior, but others as well. This new feature is not in any way critical on its own, so instead of scrambling to fix it we revert it and try again in early 17 with these issues in mind. Discussion: https://postgr.es/m/3801207.1681057430@sss.pgh.pa.us
Diffstat (limited to 'src/backend/nodes/readfuncs.c')
-rw-r--r--src/backend/nodes/readfuncs.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c
index 4c200485f3a..597e5b3ea8b 100644
--- a/src/backend/nodes/readfuncs.c
+++ b/src/backend/nodes/readfuncs.c
@@ -390,14 +390,8 @@ _readConstraint(void)
switch (local_node->contype)
{
case CONSTR_NULL:
- /* no extra fields */
- break;
-
case CONSTR_NOTNULL:
- READ_BOOL_FIELD(is_no_inherit);
- READ_STRING_FIELD(colname);
- READ_BOOL_FIELD(skip_validation);
- READ_BOOL_FIELD(initially_valid);
+ /* no extra fields */
break;
case CONSTR_DEFAULT: