summaryrefslogtreecommitdiff
path: root/src/backend/nodes
diff options
context:
space:
mode:
authorAlexander Korotkov2020-04-08 08:37:27 +0000
committerAlexander Korotkov2020-04-08 08:37:27 +0000
commit1aac32df89eb19949050f6f27c268122833ad036 (patch)
tree7f1b7d61e1bdb19a5f9437d5198b63e4be4e2ecb /src/backend/nodes
parent02a2e8b442002a698336954633b0ccc4e30061e6 (diff)
Revert 0f5ca02f53
0f5ca02f53 introduces 3 new keywords. It appears to be too much for relatively small feature. Given now we past feature freeze, it's already late for discussion of the new syntax. So, revert. Discussion: https://postgr.es/m/28209.1586294824%40sss.pgh.pa.us
Diffstat (limited to 'src/backend/nodes')
-rw-r--r--src/backend/nodes/copyfuncs.c15
-rw-r--r--src/backend/nodes/equalfuncs.c13
-rw-r--r--src/backend/nodes/outfuncs.c28
3 files changed, 0 insertions, 56 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c
index db179becab5..1525c0de725 100644
--- a/src/backend/nodes/copyfuncs.c
+++ b/src/backend/nodes/copyfuncs.c
@@ -3748,22 +3748,10 @@ _copyTransactionStmt(const TransactionStmt *from)
COPY_STRING_FIELD(savepoint_name);
COPY_STRING_FIELD(gid);
COPY_SCALAR_FIELD(chain);
- COPY_NODE_FIELD(wait);
return newnode;
}
-static WaitClause *
-_copyWaitClause(const WaitClause *from)
-{
- WaitClause *newnode = makeNode(WaitClause);
-
- COPY_STRING_FIELD(lsn);
- COPY_SCALAR_FIELD(timeout);
-
- return newnode;
-};
-
static CompositeTypeStmt *
_copyCompositeTypeStmt(const CompositeTypeStmt *from)
{
@@ -5351,9 +5339,6 @@ copyObjectImpl(const void *from)
case T_TransactionStmt:
retval = _copyTransactionStmt(from);
break;
- case T_WaitClause:
- retval = _copyWaitClause(from);
- break;
case T_CompositeTypeStmt:
retval = _copyCompositeTypeStmt(from);
break;
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c
index 854d484f603..4f34189ab5c 100644
--- a/src/backend/nodes/equalfuncs.c
+++ b/src/backend/nodes/equalfuncs.c
@@ -1541,16 +1541,6 @@ _equalTransactionStmt(const TransactionStmt *a, const TransactionStmt *b)
COMPARE_STRING_FIELD(savepoint_name);
COMPARE_STRING_FIELD(gid);
COMPARE_SCALAR_FIELD(chain);
- COMPARE_NODE_FIELD(wait);
-
- return true;
-}
-
-static bool
-_equalWaitClause(const WaitClause *a, const WaitClause *b)
-{
- COMPARE_STRING_FIELD(lsn);
- COMPARE_SCALAR_FIELD(timeout);
return true;
}
@@ -3401,9 +3391,6 @@ equal(const void *a, const void *b)
case T_TransactionStmt:
retval = _equalTransactionStmt(a, b);
break;
- case T_WaitClause:
- retval = _equalWaitClause(a, b);
- break;
case T_CompositeTypeStmt:
retval = _equalCompositeTypeStmt(a, b);
break;
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index 57b508cc6a1..bb1565467d4 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -2787,28 +2787,6 @@ _outDefElem(StringInfo str, const DefElem *node)
}
static void
-_outTransactionStmt(StringInfo str, const TransactionStmt *node)
-{
- WRITE_NODE_TYPE("TRANSACTIONSTMT");
-
- WRITE_STRING_FIELD(savepoint_name);
- WRITE_STRING_FIELD(gid);
- WRITE_NODE_FIELD(options);
- WRITE_BOOL_FIELD(chain);
- WRITE_ENUM_FIELD(kind, TransactionStmtKind);
- WRITE_NODE_FIELD(wait);
-}
-
-static void
-_outWaitClause(StringInfo str, const WaitClause *node)
-{
- WRITE_NODE_TYPE("WAITCLAUSE");
-
- WRITE_STRING_FIELD(lsn);
- WRITE_UINT_FIELD(timeout);
-}
-
-static void
_outTableLikeClause(StringInfo str, const TableLikeClause *node)
{
WRITE_NODE_TYPE("TABLELIKECLAUSE");
@@ -4358,12 +4336,6 @@ outNode(StringInfo str, const void *obj)
case T_PartitionRangeDatum:
_outPartitionRangeDatum(str, obj);
break;
- case T_TransactionStmt:
- _outTransactionStmt(str, obj);
- break;
- case T_WaitClause:
- _outWaitClause(str, obj);
- break;
default: