PG_TABLES
PG_TABLES provides access to each table in the database.
Name |
Type |
Reference |
Description |
---|---|---|---|
schemaname |
name |
PG_NAMESPACE.nspname |
Name of the schema that contains a table |
tablename |
name |
PG_CLASS.relname |
Table name |
tableowner |
name |
pg_get_userbyid(PG_CLASS.relowner) |
Table owner |
tablespace |
name |
PG_TABLESPACE.spcname |
Tablespace that contains the table. The default value is null. |
hasindexes |
boolean |
PG_CLASS.relhasindex |
The value is TRUE if the table has (or recently had) an index; otherwise, the value is FALSE. |
hasrules |
boolean |
PG_CLASS.relhasruls |
The value is TRUE if the table has rules; otherwise, the value is FALSE. |
hastriggers |
boolean |
PG_CLASS.RELHASTRIGGERS |
The value is TRUE if the table has triggers; otherwise, the value is FALSE. |
tablecreator |
name |
pg_get_userbyid(po.creator) |
Table creator. |
created |
timestamp with time zone |
pg_object.ctime |
Creation time of the object |
last_ddl_time |
timestamp with time zone |
pg_object.mtime |
Last modification time of the object |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot