mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Hello.
The following patch extends the COMMENT ON functionality to the rest of the database objects beyond just tables, columns, and views. The grammer of the COMMENT ON statement now looks like: COMMENT ON [ [ DATABASE | INDEX | RULE | SEQUENCE | TABLE | TYPE | VIEW ] <objname> | COLUMN <relation>.<attribute> | AGGREGATE <aggname> <aggtype> | FUNCTION <funcname> (arg1, arg2, ...) | OPERATOR <op> (leftoperand_typ rightoperand_typ) | TRIGGER <triggername> ON relname> Mike Mascari (mascarim@yahoo.com)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parsenodes.h,v 1.85 1999/10/15 01:49:47 momjian Exp $
|
||||
* $Id: parsenodes.h,v 1.86 1999/10/26 03:12:39 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -316,10 +316,12 @@ typedef struct TruncateStmt
|
||||
*/
|
||||
typedef struct CommentStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char *relname; /* relation to create/drop comment */
|
||||
char *attrname; /* attribute to comment on */
|
||||
char *comment; /* the actual comment */
|
||||
NodeTag type;
|
||||
int objtype; /* Object's type */
|
||||
char *objname; /* Name of the object */
|
||||
char *objproperty; /* Property Id (such as column) */
|
||||
List *objlist; /* Arguments for VAL objects */
|
||||
char *comment; /* The comment to insert */
|
||||
} CommentStmt;
|
||||
|
||||
/* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user