↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Information Functions And Operators

col_description

Read the PG 18 manual

Returns the comment for a table column, which is specified by the OID of its table and its column number.

Reading PG 18current·documented in 26 of 27 versions, 7.2 to 20

Signatures & examples

col_description ( table oid, column integer ) → text
Returns the comment for a table column, which is specified by the OID of its table and its column number. (obj_description cannot be used for table columns, since columns do not have OIDs of their own.)
Version history 4
  1. 12 → 13 changed
  2. 7.4 → 8.0 changed
  3. 7.3 → 7.4 changed
  4. 7.1 → 7.2 added

Definition snapshot: b7bd9cda · English manual source