PK referenced function

From: Agustin Larreinegabe <alarreine(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org, pgsql-novice-owner(at)postgresql(dot)org
Subject: PK referenced function
Date: 2013-09-06 13:26:08
Message-ID: CALQFU69At_J-NCOGjx4g_1p-n=D8ayuVPfht7CBoySum-MF6_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi everyone:

I want to know if exists a postgres function or some easy way to know if a
PK in a table is already referenced in another table/tables.

e.g.
I want to delete a row but first I've got to change or delete in the
table/tables where is referenced, and I have many table where could be
referenced.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Serge Fonville 2013-09-06 13:29:32 Re: PK referenced function
Previous Message Tim Kane 2013-09-06 13:19:42 Re: psql client memory usage