diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/catalog/heap.h | 5 | ||||
-rw-r--r-- | src/include/catalog/pg_description.h | 3 | ||||
-rw-r--r-- | src/include/commands/creatinh.h | 3 | ||||
-rw-r--r-- | src/include/nodes/nodes.h | 3 | ||||
-rw-r--r-- | src/include/nodes/parsenodes.h | 14 |
5 files changed, 23 insertions, 5 deletions
diff --git a/src/include/catalog/heap.h b/src/include/catalog/heap.h index faa708ff24b..47200131604 100644 --- a/src/include/catalog/heap.h +++ b/src/include/catalog/heap.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: heap.h,v 1.22 1999/10/03 23:55:35 tgl Exp $ + * $Id: heap.h,v 1.23 1999/10/15 01:49:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -32,6 +32,9 @@ extern void heap_destroy_with_catalog(char *relname); extern void heap_truncate(char *relname); extern void heap_destroy(Relation rel); +extern void CreateComments(Oid object, char *comments); +extern void DeleteComments(Oid object); + extern void AddRelationRawConstraints(Relation rel, List *rawColDefaults, List *rawConstraints); diff --git a/src/include/catalog/pg_description.h b/src/include/catalog/pg_description.h index d50da53d92b..5db9204669b 100644 --- a/src/include/catalog/pg_description.h +++ b/src/include/catalog/pg_description.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_description.h,v 1.8 1999/02/13 23:21:09 momjian Exp $ + * $Id: pg_description.h,v 1.9 1999/10/15 01:49:44 momjian Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki @@ -65,3 +65,4 @@ typedef FormData_pg_description *Form_pg_description; */ #endif /* PG_DESCRIPTION_H */ + diff --git a/src/include/commands/creatinh.h b/src/include/commands/creatinh.h index ffb111937a0..11d5fdb7a0d 100644 --- a/src/include/commands/creatinh.h +++ b/src/include/commands/creatinh.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: creatinh.h,v 1.10 1999/09/23 17:03:16 momjian Exp $ + * $Id: creatinh.h,v 1.11 1999/10/15 01:49:46 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -18,5 +18,6 @@ extern void DefineRelation(CreateStmt *stmt, char relkind); extern void RemoveRelation(char *name); extern void TruncateRelation(char *name); +extern void CommentRelation(char *name, char *attr, char *comment); #endif /* CREATINH_H */ diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h index 08705ea9f6e..09f60466f43 100644 --- a/src/include/nodes/nodes.h +++ b/src/include/nodes/nodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: nodes.h,v 1.54 1999/10/02 21:33:33 tgl Exp $ + * $Id: nodes.h,v 1.55 1999/10/15 01:49:47 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -152,6 +152,7 @@ typedef enum NodeTag T_DefineStmt, T_DestroyStmt, T_TruncateStmt, + T_CommentStmt, T_ExtendStmt, T_FetchStmt, T_IndexStmt, diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 1556bf38693..208b31d740d 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.84 1999/10/07 04:23:17 tgl Exp $ + * $Id: parsenodes.h,v 1.85 1999/10/15 01:49:47 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -309,6 +309,18 @@ typedef struct TruncateStmt NodeTag type; char *relName; /* relation to be truncated */ } TruncateStmt; + +/* ---------------------- + * Comment On Statement + * ---------------------- + */ +typedef struct CommentStmt +{ + NodeTag type; + char *relname; /* relation to create/drop comment */ + char *attrname; /* attribute to comment on */ + char *comment; /* the actual comment */ +} CommentStmt; /* ---------------------- * Extend Index Statement |