Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
dc88e795
Commit
dc88e795
authored
Dec 04, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change Constraint structure to be a full node structure.
Add new constraint types PRIMARY, UNIQUE.
parent
77356a7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
67 deletions
+70
-67
src/include/nodes/parsenodes.h
src/include/nodes/parsenodes.h
+70
-67
No files found.
src/include/nodes/parsenodes.h
View file @
dc88e795
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parsenodes.h,v 1.3
6 1997/12/04 00:28:03 scrappy
Exp $
* $Id: parsenodes.h,v 1.3
7 1997/12/04 23:55:52 thomas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -82,7 +82,7 @@ typedef struct AddAttrStmt
NodeTag
type
;
char
*
relname
;
/* the relation to add attr */
bool
inh
;
/* add recursively to children? */
struct
ColumnDef
*
colDef
;
/* the attribute definition */
Node
*
colDef
;
/* the attribute definition */
}
AddAttrStmt
;
/* ----------------------
...
...
@@ -130,23 +130,25 @@ typedef struct CreateStmt
{
NodeTag
type
;
char
*
relname
;
/* the relation to create */
List
*
tableElts
;
/* column definitions list of Column
Def
*/
List
*
tableElts
;
/* column definitions list of Column */
List
*
inhRelnames
;
/* relations to inherit from list of Value
* (string) */
List
*
constraints
;
/* list of constraints (ConstaintDef) */
}
CreateStmt
;
typedef
enum
ConstrType
typedef
enum
ConstrType
/* type of constaints */
{
CONSTR_NONE
,
CONSTR_
CHECK
/* type of constaints */
CONSTR_NONE
,
CONSTR_
NOTNULL
,
CONSTR_DEFAULT
,
CONSTR_CHECK
,
CONSTR_PRIMARY
,
CONSTR_UNIQUE
}
ConstrType
;
typedef
struct
Constraint
Def
typedef
struct
Constraint
{
ConstrType
type
;
NodeTag
type
;
ConstrType
contype
;
char
*
name
;
/* name */
void
*
def
;
/* definition */
}
ConstraintDef
;
void
*
keys
;
/* list of primary keys */
}
Constraint
;
/* ----------------------
* Create/Drop TRIGGER Statements
...
...
@@ -725,6 +727,7 @@ typedef struct ColumnDef
TypeName
*
typename
;
/* type of column */
bool
is_not_null
;
/* flag to NOT NULL constraint */
char
*
defval
;
/* default value of column */
List
*
constraints
;
/* constraints on column */
}
ColumnDef
;
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment