postgresql/src/include
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
..
access The 1st step to implement new type of scan,TidScan. 1999-10-11 06:28:29 +00:00
bootstrap Change #include's to use <> and "" as appropriate. 1999-07-15 23:04:24 +00:00
catalog This patch implements ORACLE's COMMENT SQL command. 1999-10-15 01:49:49 +00:00
commands This patch implements ORACLE's COMMENT SQL command. 1999-10-15 01:49:49 +00:00
executor Split 'BufFile' routines out of fd.c into a new module, buffile.c. Extend 1999-10-13 15:02:32 +00:00
lib Minor improvements to stringinfo package to make it more 1999-08-31 01:28:37 +00:00
libpq XLOG (also known as WAL -:)) Bootstrap/Startup/Shutdown. 1999-10-06 21:58:18 +00:00
mb Fix for multi-byte includes. 1999-07-17 16:25:28 +00:00
nodes This patch implements ORACLE's COMMENT SQL command. 1999-10-15 01:49:49 +00:00
optimizer Fix planner and rewriter to follow SQL semantics for tables that are 1999-10-07 04:23:24 +00:00
parser Fix planner and rewriter to follow SQL semantics for tables that are 1999-10-07 04:23:24 +00:00
port I have created a small patch that makes possible to compile pgsql on newer 1999-10-12 14:54:28 +00:00
regex Move some system includes into c.h, and remove duplicates. 1999-07-17 20:18:55 +00:00
rewrite Clean up rewriter routines to use expression_tree_walker and 1999-10-01 04:08:24 +00:00
storage Split 'BufFile' routines out of fd.c into a new module, buffile.c. Extend 1999-10-13 15:02:32 +00:00
tcop XLOG (also known as WAL -:)) Bootstrap/Startup/Shutdown. 1999-10-06 21:58:18 +00:00
utils Split 'BufFile' routines out of fd.c into a new module, buffile.c. Extend 1999-10-13 15:02:32 +00:00
c.h Move some system includes into c.h, and remove duplicates. 1999-07-17 20:18:55 +00:00
config.h.in Replace float.c's #ifdef finite check with a proper autoconf check, so it 1999-10-02 17:45:31 +00:00
miscadmin.h Cleanup -is flag to -l for SSL. Another PERL variable name fix. Clean 1999-10-08 04:28:57 +00:00
postgres.h More config.h cleanups. 1999-07-17 04:12:10 +00:00
postgres_ext.h Turns out OIDNAMELEN wasn't really being used at all! 1999-06-04 21:12:07 +00:00
rusagestub.h Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
strdup.h Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting. 1997-09-08 02:41:22 +00:00
version.h.in Update for 6.6. 1999-07-18 18:06:42 +00:00