diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index c4897d68c9..f916f0bd70 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -1144,12 +1144,18 @@ CREATE TABLE circles ( The OID of the table containing this row. This column is - particularly handy for queries that select from inheritance + particularly handy for queries that select from partitioned + tables (see ) or inheritance hierarchies (see ), since without it, it's difficult to tell which individual table a row came from. The - tableoid can be joined against the + tableoid can be cast to regclass + to obtain the table name. However the table's schema will only be shown + if the table is not in the default path, otherwise + tableoid will need to be joined against the oid column of - pg_class to obtain the table name. + pg_class + to obtain the relnamespace OID (which itself + can be cast to regnamespace to obtain the schema name).