diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-05-13 17:45:30 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-05-13 17:45:30 +0000 |
commit | f69bc37be807fed3170a2387f2e6621e1d002b78 (patch) | |
tree | de21754979d535d2fd4a880a06e686abeabcb8be /src/backend/parser | |
parent | 3389a110d40a505951e7c7babdfb8681173bb2ca (diff) |
Make operators have their own comments separate from those of the
underlying function; but cause psql's \do to show the underlying
function's comment if the operator has no comment of its own, to preserve
the useful functionality of the original behavior. Also, implement
COMMENT ON SCHEMA. Patch from Rod Taylor.
Diffstat (limited to 'src/backend/parser')
-rw-r--r-- | src/backend/parser/gram.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index 6b7469f2bd7..bd3a7a0832b 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.314 2002/05/12 20:10:04 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.315 2002/05/13 17:45:30 tgl Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -2278,6 +2278,7 @@ CommentStmt: COMMENT ON comment_type any_name IS comment_text comment_type: COLUMN { $$ = COLUMN; } | DATABASE { $$ = DATABASE; } + | SCHEMA { $$ = SCHEMA; } | INDEX { $$ = INDEX; } | SEQUENCE { $$ = SEQUENCE; } | TABLE { $$ = TABLE; } |