mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Remove the recently added node types ReloptElem and OptionDefElem in favor
of adding optional namespace and action fields to DefElem. Having three node types that do essentially the same thing bloats the code and leads to errors of confusion, such as in yesterday's bug report from Khee Chin.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.356 2009/03/26 17:15:34 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.357 2009/04/04 21:12:31 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every node type that can appear in stored rules' parsetrees *must*
|
||||
@ -1797,18 +1797,10 @@ _outDefElem(StringInfo str, DefElem *node)
|
||||
{
|
||||
WRITE_NODE_TYPE("DEFELEM");
|
||||
|
||||
WRITE_STRING_FIELD(defnamespace);
|
||||
WRITE_STRING_FIELD(defname);
|
||||
WRITE_NODE_FIELD(arg);
|
||||
}
|
||||
|
||||
static void
|
||||
_outReloptElem(StringInfo str, ReloptElem *node)
|
||||
{
|
||||
WRITE_NODE_TYPE("RELOPTELEM");
|
||||
|
||||
WRITE_STRING_FIELD(nmspc);
|
||||
WRITE_STRING_FIELD(optname);
|
||||
WRITE_NODE_FIELD(arg);
|
||||
WRITE_ENUM_FIELD(defaction, DefElemAction);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -2774,9 +2766,6 @@ _outNode(StringInfo str, void *obj)
|
||||
case T_DefElem:
|
||||
_outDefElem(str, obj);
|
||||
break;
|
||||
case T_ReloptElem:
|
||||
_outReloptElem(str, obj);
|
||||
break;
|
||||
case T_LockingClause:
|
||||
_outLockingClause(str, obj);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user