pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tilo Schwarz <mail@tilo-schwarz.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Question on SQL and pg_-tables
Date: Mon, 25 Nov 2002 13:32:05 -0500
Message-ID: <8774.1038249125@sss.pgh.pa.us> (raw)
In-Reply-To: <200211251721.27543.mail@tilo-schwarz.de>
References: <200211251721.27543.mail@tilo-schwarz.de>

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.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <8774.1038249125@sss.pgh.pa.us>
Permalink:  ../8774.1038249125@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8774.1038249125@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mail@tilo-schwarz.de
  Subject: Re: Question on SQL and pg_-tables
  In-Reply-To: <8774.1038249125@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox