viewing foreign key constraints in psql

From: steven thoms <sthoms(at)moyergroup(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: viewing foreign key constraints in psql
Date: 2002-10-15 20:14:14
Message-ID: 3DAC7717.A623E8EA@moyergroup.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have created a FOREIGN KEY constraint on a table, using bbedit to edit
a dump.

I recreated the table, tested that it worked with a simple .php page
that tried to delete the parent.

I received the appropriate error, so I know it's there.

Now I want to propagate the same constraint throughout a number of
similar tables but when I have psql display the table information, it
only shows the PRIMARY KEY constraint.

Do you know how to get psql to list all the constraints on a table?

Thanks in advance for any help.

Steve

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2002-10-15 20:18:02 Re: Performance Tips
Previous Message Alvaro Herrera 2002-10-15 19:58:57 Re: Performance Tips