how to save primary key constraints

From: "J(dot)V(dot)" <jvsrvcs(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: how to save primary key constraints
Date: 2011-10-11 21:16:21
Message-ID: 4E94B225.6070501@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I need to be able to query for all primary keys and save the table name
and the name of the primary key field into some structure that I can
iterate through later.

How would I go about this? I want to hard code the number of tables and
be able to iterate through some structure to get the table name and the
primary key field.

Regards,

J.V.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2011-10-11 21:23:45 Re: how to call a stored function from another stored function? even possible?
Previous Message salah jubeh 2011-10-11 20:03:19 Re: libpq 8.3 and 8.4 interfaces