diff options
Diffstat (limited to 'src/backend/nodes/readfuncs.c')
-rw-r--r-- | src/backend/nodes/readfuncs.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c index 6b11f0481bf..21176cd4c04 100644 --- a/src/backend/nodes/readfuncs.c +++ b/src/backend/nodes/readfuncs.c @@ -33,9 +33,7 @@ #include <math.h> #include "miscadmin.h" -#include "nodes/extensible.h" -#include "nodes/parsenodes.h" -#include "nodes/plannodes.h" +#include "nodes/bitmapset.h" #include "nodes/readfuncs.h" @@ -238,6 +236,8 @@ readBitmapset(void) return _readBitmapset(); } +#include "readfuncs.funcs.c" + /* * _readQuery */ @@ -291,6 +291,7 @@ _readQuery(void) READ_DONE(); } +#ifdef OBSOLETE /* * _readNotifyStmt */ @@ -629,6 +630,7 @@ _readVar(void) READ_DONE(); } +#endif /* OBSOLETE */ /* * _readConst @@ -655,6 +657,7 @@ _readConst(void) READ_DONE(); } +#ifdef OBSOLETE /* * _readParam */ @@ -880,6 +883,7 @@ _readScalarArrayOpExpr(void) READ_DONE(); } +#endif /* OBSOLETE */ /* * _readBoolExpr @@ -907,6 +911,7 @@ _readBoolExpr(void) READ_DONE(); } +#ifdef OBSOLETE /* * _readSubLink */ @@ -1649,6 +1654,7 @@ _readAppendRelInfo(void) /* * Stuff from parsenodes.h. */ +#endif /* OBSOLETE */ /* * _readRangeTblEntry @@ -1744,6 +1750,7 @@ _readRangeTblEntry(void) READ_DONE(); } +#ifdef OBSOLETE /* * _readRangeTblFunction */ @@ -2846,6 +2853,7 @@ _readAlternativeSubPlan(void) READ_DONE(); } +#endif /* OBSOLETE */ /* * _readExtensibleNode @@ -2877,6 +2885,7 @@ _readExtensibleNode(void) READ_DONE(); } +#ifdef OBSOLETE /* * _readPartitionBoundSpec */ @@ -2911,6 +2920,7 @@ _readPartitionRangeDatum(void) READ_DONE(); } +#endif /* OBSOLETE */ /* * parseNodeString @@ -2935,7 +2945,11 @@ parseNodeString(void) #define MATCH(tokname, namelen) \ (length == namelen && memcmp(token, tokname, namelen) == 0) - if (MATCH("QUERY", 5)) + if (false) + ; +#include "readfuncs.switch.c" +#ifdef OBSOLETE + else if (MATCH("QUERY", 5)) return_value = _readQuery(); else if (MATCH("WITHCHECKOPTION", 15)) return_value = _readWithCheckOption(); @@ -3205,6 +3219,7 @@ parseNodeString(void) return_value = _readJsonTableParent(); else if (MATCH("JSONTABLESIBLING", 16)) return_value = _readJsonTableSibling(); +#endif /* OBSOLETE */ else { elog(ERROR, "badly formatted node string \"%.32s\"...", token); |