Header And Logo

PostgreSQL
| The world's most advanced open source database.

Data Structures | Defines | Typedefs | Enumerations

primnodes.h File Reference

#include "access/attnum.h"
#include "nodes/pg_list.h"
Include dependency graph for primnodes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Alias
struct  RangeVar
struct  IntoClause
struct  Expr
struct  Var
struct  Const
struct  Param
struct  Aggref
struct  WindowFunc
struct  ArrayRef
struct  FuncExpr
struct  NamedArgExpr
struct  OpExpr
struct  ScalarArrayOpExpr
struct  BoolExpr
struct  SubLink
struct  SubPlan
struct  AlternativeSubPlan
struct  FieldSelect
struct  FieldStore
struct  RelabelType
struct  CoerceViaIO
struct  ArrayCoerceExpr
struct  ConvertRowtypeExpr
struct  CollateExpr
struct  CaseExpr
struct  CaseWhen
struct  CaseTestExpr
struct  ArrayExpr
struct  RowExpr
struct  RowCompareExpr
struct  CoalesceExpr
struct  MinMaxExpr
struct  XmlExpr
struct  NullTest
struct  BooleanTest
struct  CoerceToDomain
struct  CoerceToDomainValue
struct  SetToDefault
struct  CurrentOfExpr
struct  TargetEntry
struct  RangeTblRef
struct  JoinExpr
struct  FromExpr

Defines

#define INNER_VAR   65000
#define OUTER_VAR   65001
#define INDEX_VAR   65002
#define IS_SPECIAL_VARNO(varno)   ((varno) >= INNER_VAR)
#define PRS2_OLD_VARNO   1
#define PRS2_NEW_VARNO   2

Typedefs

typedef struct Alias Alias
typedef enum InhOption InhOption
typedef enum OnCommitAction OnCommitAction
typedef struct RangeVar RangeVar
typedef struct IntoClause IntoClause
typedef struct Expr Expr
typedef struct Var Var
typedef struct Const Const
typedef enum ParamKind ParamKind
typedef struct Param Param
typedef struct Aggref Aggref
typedef struct WindowFunc WindowFunc
typedef struct ArrayRef ArrayRef
typedef enum CoercionContext CoercionContext
typedef enum CoercionForm CoercionForm
typedef struct FuncExpr FuncExpr
typedef struct NamedArgExpr NamedArgExpr
typedef struct OpExpr OpExpr
typedef OpExpr DistinctExpr
typedef OpExpr NullIfExpr
typedef struct ScalarArrayOpExpr ScalarArrayOpExpr
typedef enum BoolExprType BoolExprType
typedef struct BoolExpr BoolExpr
typedef enum SubLinkType SubLinkType
typedef struct SubLink SubLink
typedef struct SubPlan SubPlan
typedef struct AlternativeSubPlan AlternativeSubPlan
typedef struct FieldSelect FieldSelect
typedef struct FieldStore FieldStore
typedef struct RelabelType RelabelType
typedef struct CoerceViaIO CoerceViaIO
typedef struct ArrayCoerceExpr ArrayCoerceExpr
typedef struct ConvertRowtypeExpr ConvertRowtypeExpr
typedef struct CollateExpr CollateExpr
typedef struct CaseExpr CaseExpr
typedef struct CaseWhen CaseWhen
typedef struct CaseTestExpr CaseTestExpr
typedef struct ArrayExpr ArrayExpr
typedef struct RowExpr RowExpr
typedef enum RowCompareType RowCompareType
typedef struct RowCompareExpr RowCompareExpr
typedef struct CoalesceExpr CoalesceExpr
typedef enum MinMaxOp MinMaxOp
typedef struct MinMaxExpr MinMaxExpr
typedef enum XmlExprOp XmlExprOp
typedef struct XmlExpr XmlExpr
typedef enum NullTestType NullTestType
typedef struct NullTest NullTest
typedef enum BoolTestType BoolTestType
typedef struct BooleanTest BooleanTest
typedef struct CoerceToDomain CoerceToDomain
typedef struct CoerceToDomainValue CoerceToDomainValue
typedef struct SetToDefault SetToDefault
typedef struct CurrentOfExpr CurrentOfExpr
typedef struct TargetEntry TargetEntry
typedef struct RangeTblRef RangeTblRef
typedef struct JoinExpr JoinExpr
typedef struct FromExpr FromExpr

Enumerations

enum  InhOption { INH_NO, INH_YES, INH_DEFAULT }
enum  OnCommitAction { ONCOMMIT_NOOP, ONCOMMIT_PRESERVE_ROWS, ONCOMMIT_DELETE_ROWS, ONCOMMIT_DROP }
enum  ParamKind { PARAM_EXTERN, PARAM_EXEC, PARAM_SUBLINK }
enum  CoercionContext { COERCION_IMPLICIT, COERCION_ASSIGNMENT, COERCION_EXPLICIT }
enum  CoercionForm { COERCE_EXPLICIT_CALL, COERCE_EXPLICIT_CAST, COERCE_IMPLICIT_CAST }
enum  BoolExprType { AND_EXPR, OR_EXPR, NOT_EXPR }
enum  SubLinkType {
  EXISTS_SUBLINK, ALL_SUBLINK, ANY_SUBLINK, ROWCOMPARE_SUBLINK,
  EXPR_SUBLINK, ARRAY_SUBLINK, CTE_SUBLINK
}
enum  RowCompareType {
  ROWCOMPARE_LT = 1, ROWCOMPARE_LE = 2, ROWCOMPARE_EQ = 3, ROWCOMPARE_GE = 4,
  ROWCOMPARE_GT = 5, ROWCOMPARE_NE = 6
}
enum  MinMaxOp { IS_GREATEST, IS_LEAST }
enum  XmlExprOp {
  IS_XMLCONCAT, IS_XMLELEMENT, IS_XMLFOREST, IS_XMLPARSE,
  IS_XMLPI, IS_XMLROOT, IS_XMLSERIALIZE, IS_DOCUMENT
}
enum  XmlOptionType { XMLOPTION_DOCUMENT, XMLOPTION_CONTENT }
enum  NullTestType { IS_NULL, IS_NOT_NULL }
enum  BoolTestType {
  IS_TRUE, IS_NOT_TRUE, IS_FALSE, IS_NOT_FALSE,
  IS_UNKNOWN, IS_NOT_UNKNOWN
}

Define Documentation

#define INDEX_VAR   65002
#define INNER_VAR   65000
#define IS_SPECIAL_VARNO (   varno  )     ((varno) >= INNER_VAR)
#define OUTER_VAR   65001
#define PRS2_NEW_VARNO   2
#define PRS2_OLD_VARNO   1

Typedef Documentation

typedef struct Aggref Aggref
typedef struct Alias Alias
typedef struct ArrayExpr ArrayExpr
typedef struct ArrayRef ArrayRef
typedef struct BooleanTest BooleanTest
typedef struct BoolExpr BoolExpr
typedef enum BoolExprType BoolExprType
typedef enum BoolTestType BoolTestType
typedef struct CaseExpr CaseExpr
typedef struct CaseTestExpr CaseTestExpr
typedef struct CaseWhen CaseWhen
typedef struct CoalesceExpr CoalesceExpr
typedef struct CoerceViaIO CoerceViaIO
typedef enum CoercionForm CoercionForm
typedef struct CollateExpr CollateExpr
typedef struct Const Const
typedef struct CurrentOfExpr CurrentOfExpr

Definition at line 412 of file primnodes.h.

typedef struct Expr Expr
typedef struct FieldSelect FieldSelect
typedef struct FieldStore FieldStore
typedef struct FromExpr FromExpr
typedef struct FuncExpr FuncExpr
typedef enum InhOption InhOption
typedef struct IntoClause IntoClause
typedef struct JoinExpr JoinExpr
typedef struct MinMaxExpr MinMaxExpr
typedef enum MinMaxOp MinMaxOp
typedef struct NamedArgExpr NamedArgExpr
typedef OpExpr NullIfExpr

Definition at line 420 of file primnodes.h.

typedef struct NullTest NullTest
typedef enum NullTestType NullTestType
typedef struct OpExpr OpExpr
typedef struct Param Param
typedef enum ParamKind ParamKind
typedef struct RangeTblRef RangeTblRef
typedef struct RangeVar RangeVar
typedef struct RelabelType RelabelType
typedef struct RowExpr RowExpr
typedef struct SetToDefault SetToDefault
typedef struct SubLink SubLink
typedef enum SubLinkType SubLinkType
typedef struct SubPlan SubPlan
typedef struct TargetEntry TargetEntry
typedef struct Var Var
typedef struct WindowFunc WindowFunc
typedef struct XmlExpr XmlExpr
typedef enum XmlExprOp XmlExprOp

Enumeration Type Documentation

Enumerator:
AND_EXPR 
OR_EXPR 
NOT_EXPR 

Definition at line 454 of file primnodes.h.

{
    AND_EXPR, OR_EXPR, NOT_EXPR
} BoolExprType;

Enumerator:
IS_TRUE 
IS_NOT_TRUE 
IS_FALSE 
IS_NOT_FALSE 
IS_UNKNOWN 
IS_NOT_UNKNOWN 

Definition at line 1036 of file primnodes.h.

{
    IS_TRUE, IS_NOT_TRUE, IS_FALSE, IS_NOT_FALSE, IS_UNKNOWN, IS_NOT_UNKNOWN
} BoolTestType;

Enumerator:
COERCION_IMPLICIT 
COERCION_ASSIGNMENT 
COERCION_EXPLICIT 

Definition at line 317 of file primnodes.h.

{
    COERCION_IMPLICIT,          /* coercion in context of expression */
    COERCION_ASSIGNMENT,        /* coercion in context of assignment */
    COERCION_EXPLICIT           /* explicit cast operation */
} CoercionContext;

Enumerator:
COERCE_EXPLICIT_CALL 
COERCE_EXPLICIT_CAST 
COERCE_IMPLICIT_CAST 

Definition at line 333 of file primnodes.h.

{
    COERCE_EXPLICIT_CALL,       /* display as a function call */
    COERCE_EXPLICIT_CAST,       /* display as an explicit cast */
    COERCE_IMPLICIT_CAST        /* implicit cast, so hide it */
} CoercionForm;

enum InhOption
Enumerator:
INH_NO 
INH_YES 
INH_DEFAULT 

Definition at line 45 of file primnodes.h.

{
    INH_NO,                     /* Do NOT scan child tables */
    INH_YES,                    /* DO scan child tables */
    INH_DEFAULT                 /* Use current SQL_inheritance option */
} InhOption;

enum MinMaxOp
Enumerator:
IS_GREATEST 
IS_LEAST 

Definition at line 942 of file primnodes.h.

{
    IS_GREATEST,
    IS_LEAST
} MinMaxOp;

Enumerator:
IS_NULL 
IS_NOT_NULL 

Definition at line 1014 of file primnodes.h.

{
    IS_NULL, IS_NOT_NULL
} NullTestType;

Enumerator:
ONCOMMIT_NOOP 
ONCOMMIT_PRESERVE_ROWS 
ONCOMMIT_DELETE_ROWS 
ONCOMMIT_DROP 

Definition at line 53 of file primnodes.h.

{
    ONCOMMIT_NOOP,              /* No ON COMMIT clause (do nothing) */
    ONCOMMIT_PRESERVE_ROWS,     /* ON COMMIT PRESERVE ROWS (do nothing) */
    ONCOMMIT_DELETE_ROWS,       /* ON COMMIT DELETE ROWS */
    ONCOMMIT_DROP               /* ON COMMIT DROP */
} OnCommitAction;

enum ParamKind
Enumerator:
PARAM_EXTERN 
PARAM_EXEC 
PARAM_SUBLINK 

Definition at line 207 of file primnodes.h.

{
    PARAM_EXTERN,
    PARAM_EXEC,
    PARAM_SUBLINK
} ParamKind;

Enumerator:
ROWCOMPARE_LT 
ROWCOMPARE_LE 
ROWCOMPARE_EQ 
ROWCOMPARE_GE 
ROWCOMPARE_GT 
ROWCOMPARE_NE 

Definition at line 905 of file primnodes.h.

{
    /* Values of this enum are chosen to match btree strategy numbers */
    ROWCOMPARE_LT = 1,          /* BTLessStrategyNumber */
    ROWCOMPARE_LE = 2,          /* BTLessEqualStrategyNumber */
    ROWCOMPARE_EQ = 3,          /* BTEqualStrategyNumber */
    ROWCOMPARE_GE = 4,          /* BTGreaterEqualStrategyNumber */
    ROWCOMPARE_GT = 5,          /* BTGreaterStrategyNumber */
    ROWCOMPARE_NE = 6           /* no such btree strategy */
} RowCompareType;

Enumerator:
EXISTS_SUBLINK 
ALL_SUBLINK 
ANY_SUBLINK 
ROWCOMPARE_SUBLINK 
EXPR_SUBLINK 
ARRAY_SUBLINK 
CTE_SUBLINK 

Definition at line 510 of file primnodes.h.

{
    EXISTS_SUBLINK,
    ALL_SUBLINK,
    ANY_SUBLINK,
    ROWCOMPARE_SUBLINK,
    EXPR_SUBLINK,
    ARRAY_SUBLINK,
    CTE_SUBLINK                 /* for SubPlans only */
} SubLinkType;

enum XmlExprOp
Enumerator:
IS_XMLCONCAT 
IS_XMLELEMENT 
IS_XMLFOREST 
IS_XMLPARSE 
IS_XMLPI 
IS_XMLROOT 
IS_XMLSERIALIZE 
IS_DOCUMENT 

Definition at line 971 of file primnodes.h.

{
    IS_XMLCONCAT,               /* XMLCONCAT(args) */
    IS_XMLELEMENT,              /* XMLELEMENT(name, xml_attributes, args) */
    IS_XMLFOREST,               /* XMLFOREST(xml_attributes) */
    IS_XMLPARSE,                /* XMLPARSE(text, is_doc, preserve_ws) */
    IS_XMLPI,                   /* XMLPI(name [, args]) */
    IS_XMLROOT,                 /* XMLROOT(xml, version, standalone) */
    IS_XMLSERIALIZE,            /* XMLSERIALIZE(is_document, xmlval) */
    IS_DOCUMENT                 /* xmlval IS DOCUMENT */
} XmlExprOp;

Enumerator:
XMLOPTION_DOCUMENT 
XMLOPTION_CONTENT 

Definition at line 983 of file primnodes.h.

{
    XMLOPTION_DOCUMENT,
    XMLOPTION_CONTENT
} XmlOptionType;