aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/primnodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/nodes/primnodes.h')
-rw-r--r--src/include/nodes/primnodes.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h
index 1e896e5e136..3da2c433cb7 100644
--- a/src/include/nodes/primnodes.h
+++ b/src/include/nodes/primnodes.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: primnodes.h,v 1.12 1998/01/04 04:31:37 momjian Exp $
+ * $Id: primnodes.h,v 1.13 1998/01/17 04:53:42 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -271,6 +271,33 @@ typedef struct Aggreg
} Aggreg;
/* ----------------
+ * SubLink
+ * subLinkType - EXISTS, ALL, ANY, EXPR
+ * useor - TRUE for <>
+ * lefthand - list of Var/Const nodes on the left
+ * oper - list of Oper nodes
+ * subselect - subselect as Query* or parsetree
+ * ----------------
+ */
+typedef enum SubLinkType
+{
+ EXISTS_SUBLINK, ALL_SUBLINK, ANY_SUBLINK, EXPR_SUBLINK,
+ IN_SUBLINK, NOTIN_SUBLINK, OPER_SUBLINK
+} SubLinkType;
+
+
+typedef struct SubLink
+{
+struct Query;
+ NodeTag type;
+ SubLinkType subLinkType;
+ bool useor;
+ List *lefthand;
+ List *oper;
+ Node *subselect;
+} SubLink;
+
+/* ----------------
* Array
* arrayelemtype - base type of the array's elements (homogenous!)
* arrayelemlength - length of that type