Re: Question on SQL and pg_-tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tilo Schwarz <mail(at)tilo-schwarz(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Question on SQL and pg_-tables
Date: 2002-11-25 18:32:05
Message-ID: 8774.1038249125@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Tilo Schwarz <mail(at)tilo-schwarz(dot)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.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Richards 2002-11-25 18:57:28 changing the size of a column without dump/restore
Previous Message Tilo Schwarz 2002-11-25 16:21:27 Question on SQL and pg_-tables