how can tell if a column is a primary key? - Mailing list pgsql-sql

From Mark Stosberg
Subject how can tell if a column is a primary key?
Date
Msg-id 382F925C.31358F09@summersault.com
Whole thread Raw
Responses Re: [SQL] how can tell if a column is a primary key?  ("D'Arcy" "J.M." Cain <darcy@druid.net>)
Re: [SQL] how can tell if a column is a primary key?  (Howie <caffeine@toodarkpark.org>)
List pgsql-sql
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/


pgsql-sql by date:

Previous
From: Chaotic Inceptions
Date:
Subject: Arrays of composites, bug or usage?
Next
From: Tom Lane
Date:
Subject: Re: [SQL] Verificate values in other table?