PG_DESCRIPTION
PG_DESCRIPTION records optional descriptions (comments) for each database object. Descriptions of many built-in system objects are provided in the initial contents of PG_DESCRIPTION.
See also PG_SHDESCRIPTION, which performs a similar function for descriptions involving objects that are shared across a database cluster.
| 
        Column  | 
      
        Type  | 
      
        Reference  | 
      
        Description  | 
     
|---|---|---|---|
| 
        objoid  | 
      
        OID  | 
      
        Any OID column  | 
      
        OID of the object this description pertains to  | 
     
| 
        classoid  | 
      
        OID  | 
      
        PG_CLASS.oid  | 
      
        OID of the system catalog this object appears in  | 
     
| 
        objsubid  | 
      
        Integer  | 
      
        -  | 
      
        For a comment on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is 0.  | 
     
| 
        description  | 
      
        Text  | 
      
        -  | 
      
        Arbitrary text that serves as the description of this object  | 
     
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.