diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-07-16 22:12:20 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-07-16 22:12:20 +0000 |
commit | 5af19e4227c4b1a1879956eb891af61469d3f8ba (patch) | |
tree | 3cc5204c0800d43e0b24864908778771a2562eda /src/include/nodes/parsenodes.h | |
parent | cdebcad6af70ec13bd89f11cf7f3d8b7d5278f50 (diff) |
Add more dependency insertions --- this completes the basic pg_depend
functionality. Of note: dropping a table that has a SERIAL column
defined now drops the associated sequence automatically.
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index f0542990f2e..c0933f8ae7f 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.186 2002/07/14 23:38:13 tgl Exp $ + * $Id: parsenodes.h,v 1.187 2002/07/16 22:12:20 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -269,6 +269,10 @@ typedef struct BooleanTest * parsetree produced by gram.y, but transformCreateStmt will remove * the item and set raw_default instead. CONSTR_DEFAULT items * should not appear in any subsequent processing. + * + * The "support" field, if not null, denotes a supporting relation that + * should be linked by an internal dependency to the column. Currently + * this is only used to link a SERIAL column's sequence to the column. */ typedef struct ColumnDef { @@ -280,6 +284,7 @@ typedef struct ColumnDef * tree) */ char *cooked_default; /* nodeToString representation */ List *constraints; /* other constraints on column */ + RangeVar *support; /* supporting relation, if any */ } ColumnDef; /* |