Obtaining primary key information from pg system tables - Mailing list pgsql-sql

From Kris
Subject Obtaining primary key information from pg system tables
Date
Msg-id 009201c219d7$c6605420$30267bd5@graveland
Whole thread Raw
List pgsql-sql
Hi,
 
I am trying to generate some xml metadata from the pg system tables for my java code generation utility. I have can get most information, but i would like to be able to tell which column is a primary key or which one is a foreign key (i dont need to know which table the foreign key references at this point).
 
Which tables do i need reference, could anyone provide an example query?
 
Kris

pgsql-sql by date:

Previous
From: Andrew Hammond
Date:
Subject: Re: is it easy to change the create sequence algorithm?
Next
From: "Dmitri Colebatch"
Date:
Subject: Re: Obtaining primary key information from pg system tables