Search Postgresql Archives

Re: When to use COMMENT vs --

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





2016-12-07 16:57 GMT+01:00 Rich Shepard <rshepard@xxxxxxxxxxxxxxx>:
  I have used '-- ' to enter comments about tables or columns and am curious
about the value of storing comments in tables using the COMMENT key word.
When is the latter more appropriate than the former?

Description entered with COMMENT statements is persistently saved in database system catalogue - see table pg_description. You can get the comment for any database object.

Comments like '--' or '/* ... */ are comments in source code, and they are just ignored in processing.

Regards

Pavel
 

TIA,

Rich


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux