From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Pavel Fryc <Pavel(dot)Fryc(at)oskarmobil(dot)cz> |
Cc: | "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>, Borek Lupomesky <Borek(dot)Lupomesky(at)oskarmobil(dot)cz> |
Subject: | Re: REFERENCES Constraint |
Date: | 2001-07-18 18:23:03 |
Message-ID: | Pine.BSF.4.21.0107181119350.30757-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, 18 Jul 2001, Pavel Fryc wrote:
> Is there a way to find out for given row and column what other tables/rows
> reference this row/column by means of reference integrity. I need this when
> user deletes number of rows from a table and there is integrity violation I
> want to get a list of tables/rows that cause the violation for user to
> review.
> I need help from You with this my problem.
It's not really easy, you need to get the references information out of
pg_trigger (see the archives for more information) and then given that
you could probably formulate the query necessary to get the rows (you'd
probably want to look at backend/utils/adt/ri_triggers.c at the noaction
triggers for information on how to make the query).
From | Date | Subject | |
---|---|---|---|
Next Message | Todd LaClair | 2001-07-18 18:24:44 | Migration |
Previous Message | Ryan C. Bonham | 2001-07-18 18:19:54 | RE: THIS IS NOT RELATED TO THE RDBMS BUT PLEEEEEEEEEEEE EASE |