From: Mark Stosberg <mark@summersault.com>
To: pgsql-sql@postgresql.org
Subject: how can tell if a column is a primary key?
Date: Sun, 14 Nov 1999 23:57:15 -0500
Message-ID: <382F925C.31358F09@summersault.com> (raw)
Hello!
I'm writing some perl code to access arbitrary Postgres tables. As part
of this, I would like to be to tell if a given column is a primary key.
Given a table and a column name, is there is a select statement I can
run on the systems tables to tell me whether or not it's a primary key? Thanks.
-mark
--
<<-------------------------------------------------------------->>
personal website < Summersault Website Design
http://mark.stosberg.com/ > http://www.summersault.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: mark@summersault.com
Subject: Re: how can tell if a column is a primary key?
In-Reply-To: <382F925C.31358F09@summersault.com>
References: <382F925C.31358F09@summersault.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox