aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/primnodes.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-07-03 16:34:26 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-07-03 16:34:26 +0000
commit455891bf96f6ee3dda9150fe83af2be5e86a572b (patch)
treed29465046a93c84445b8160e5af83899440330a2 /src/include/nodes/primnodes.h
parent7b1885bf989781b12bda847b98c89476efb894c9 (diff)
downloadpostgresql-455891bf96f6ee3dda9150fe83af2be5e86a572b.tar.gz
postgresql-455891bf96f6ee3dda9150fe83af2be5e86a572b.zip
Code review for UPDATE tab SET col = DEFAULT patch ... whack it around
so it has some chance of working in rules ...
Diffstat (limited to 'src/include/nodes/primnodes.h')
-rw-r--r--src/include/nodes/primnodes.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h
index 57827ee76fe..522ddc5f902 100644
--- a/src/include/nodes/primnodes.h
+++ b/src/include/nodes/primnodes.h
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: primnodes.h,v 1.86 2003/06/29 00:33:44 tgl Exp $
+ * $Id: primnodes.h,v 1.87 2003/07/03 16:34:26 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -674,6 +674,19 @@ typedef struct CoerceToDomainValue
int32 typeMod; /* typemod for substituted value */
} CoerceToDomainValue;
+/*
+ * Placeholder node for a DEFAULT marker in an INSERT or UPDATE command.
+ *
+ * This is not an executable expression: it must be replaced by the actual
+ * column default expression during rewriting. But it is convenient to
+ * treat it as an expression node during parsing and rewriting.
+ */
+typedef struct SetToDefault
+{
+ Expr xpr;
+ Oid typeId; /* type for substituted value */
+ int32 typeMod; /* typemod for substituted value */
+} SetToDefault;
/*
* TargetEntry -