Re: How to determine PRIMARY KEYS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sandro Dentella <sandro(dot)dentella(at)tin(dot)it>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: How to determine PRIMARY KEYS
Date: 2001-06-11 18:40:17
Message-ID: 5950.992284817@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Sandro Dentella <sandro(dot)dentella(at)tin(dot)it> writes:
> Here is what I do:

Wouldn't it be easier just to look for the pg_index row (if any) that
has indisprimary = true?

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Vincent Roberts 2001-06-11 19:34:10 Calling lo_open within user defined C function
Previous Message Alex Pilosov 2001-06-11 17:32:20 Re: How to determine PRIMARY KEYS