Search Postgresql Archives

Re: How relate pg_class to pg_constraint

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

 



Bill Todd wrote:
I need to join pg_class and pg_constraint to get information about constraints on a table. It appears that pg_constraint.conrelid is the foreign key but I do not see a relid column in pg_class. What column(s) define the relationship between these tables? Thanks.

Bill

Is the relationship pg_constraint.conrelid = pg_class.oid? I assume the column lists for the system tables do not include the oid column because everyone (but us newbies) knows that every system table has an oid column.<g>

Bill

--
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