Re: deleting a foreign key that has no references

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Glen W(dot) Mabey" <Glen(dot)Mabey(at)swri(dot)org>
Cc: hubert depesz lubaczewski <depesz(at)gmail(dot)com>, postgresql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: deleting a foreign key that has no references
Date: 2007-03-19 16:53:08
Message-ID: 13751.1174323188@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Glen W. Mabey" <Glen(dot)Mabey(at)swri(dot)org> writes:
> What I'm hoping to find out is whether there is some way to directly
> find out how many (using a SELECT query) references there are to a key.

There's no hidden shortcut for that, no.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jaroslav Záruba 2007-03-19 16:56:44 DBD:Pg for Windows (PostgreSQL+Perl)
Previous Message Stephan Szabo 2007-03-19 16:46:22 Re: deleting a foreign key that has no references