postgresql/src/include/nodes
Bruce Momjian 7acc237744 This patch implements ORACLE's COMMENT SQL command.
>From the ORACLE 7 SQL Language Reference Manual:
-----------------------------------------------------
COMMENT

Purpose:

To add a comment about a table, view, snapshot, or
column into the data dictionary.

Prerequisites:

The table, view, or snapshot must be in your own
schema
or you must have COMMENT ANY TABLE system privilege.

Syntax:

COMMENT ON [ TABLE table ] |
           [ COLUMN table.column] IS 'text'

You can effectively drop a comment from the database
by setting it to the empty string ''.
-----------------------------------------------------

Example:

COMMENT ON TABLE workorders IS
   'Maintains base records for workorder information';

COMMENT ON COLUMN workorders.hours IS
   'Number of hours the engineer worked on the task';

to drop a comment:

COMMENT ON COLUMN workorders.hours IS '';

The current patch will simply perform the insert into
pg_description, as per the TODO. And, of course, when
the table is dropped, any comments relating to it
or any of its attributes are also dropped. I haven't
looked at the ODBC source yet, but I do know from
an ODBC client standpoint that the standard does
support the notion of table and column comments.
Hopefully the ODBC driver is already fetching these
values from pg_description, but if not, it should be
trivial.

Hope this makes the grade,

Mike Mascari
(mascarim@yahoo.com)
1999-10-15 01:49:49 +00:00
..
execnodes.h Modify nodeAgg.c so that no rows are returned for a GROUP BY 1999-09-26 21:21:15 +00:00
makefuncs.h Further planner/optimizer cleanups. Move all set_tlist_references 1999-08-22 20:15:04 +00:00
memnodes.h More cleanup 1999-07-16 17:07:40 +00:00
nodeFuncs.h Change #include's to use <> and "" as appropriate. 1999-07-15 23:04:24 +00:00
nodes.h This patch implements ORACLE's COMMENT SQL command. 1999-10-15 01:49:49 +00:00
params.h Change #include's to use <> and "" as appropriate. 1999-07-15 23:04:24 +00:00
parsenodes.h This patch implements ORACLE's COMMENT SQL command. 1999-10-15 01:49:49 +00:00
pg_list.h Major planner/optimizer revision: get rid of PathOrder node type, 1999-08-16 02:17:58 +00:00
plannodes.h Major revision of sort-node handling: push knowledge of query 1999-08-21 03:49:17 +00:00
primnodes.h Revise implementation of SubLinks so that there is a consistent, 1999-08-25 23:21:43 +00:00
print.h Clean up #include in /include directory. Add scripts for checking includes. 1999-07-15 15:21:54 +00:00
readfuncs.h Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
relation.h Major planner/optimizer revision: get rid of PathOrder node type, 1999-08-16 02:17:58 +00:00