Re: deleting a foreign key that has no references

From: "hubert depesz lubaczewski" <depesz(at)gmail(dot)com>
To: "Glen W(dot) Mabey" <Glen(dot)Mabey(at)swri(dot)org>
Cc: postgresql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: deleting a foreign key that has no references
Date: 2007-03-19 15:51:57
Message-ID: 9e4684ce0703190851g17438842s31a2a7c154cc27e0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/19/07, Glen W. Mabey <Glen(dot)Mabey(at)swri(dot)org> wrote:
> But, really, I just want to be able to test to see how many references
> there are to a key. Is there some way to do that?

write a triggers which do that.

depesz

--
http://www.depesz.com/ - nowy, lepszy depesz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Eric 2007-03-19 15:59:45 Re: cannot get build (initdb) to work after trying for a week
Previous Message Alban Hertroys 2007-03-19 15:38:34 Re: Planner tuning