Re: Question on SQL and pg_-tables - Mailing list pgsql-sql

From Tilo Schwarz
Subject Re: Question on SQL and pg_-tables
Date
Msg-id 200211271113.40827.mail@tilo-schwarz.de
Whole thread Raw
In response to Re: Question on SQL and pg_-tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Question on SQL and pg_-tables  (Peter Childs <Blue.Dragon@blueyonder.co.uk>)
List pgsql-sql
> Tilo Schwarz <mail@tilo-schwarz.de> writes:
> > - Is it possible to get not only the two tables, but also their
> > corresponding two columns involved in a RI-Constraint out of the pg_*
> > tables just with a SQL query?
>
> Not easily --- the column info is buried in the pg_trigger.tgargs entries
> for the RI triggers, which there is no good way to take apart in plain SQL.
>
> You might care to start experimenting with 7.3 instead; the new
> pg_constraint table makes this much easier.

Thank you, I'll check that out.

Regards,
Tilo


pgsql-sql by date:

Previous
From: Luis Sousa
Date:
Subject: Re: SQL query help!
Next
From: Laurent Patureau
Date:
Subject: Function and insert