pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sandro Dentella <sandro.dentella@tin.it>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: How to determine PRIMARY KEYS
Date: Mon, 11 Jun 2001 14:40:17 -0400
Message-ID: <5950.992284817@sss.pgh.pa.us> (raw)
In-Reply-To: <20010611184617.A6328@bluff.diade.it>
References: <20010611184617.A6328@bluff.diade.it>

Sandro Dentella <sandro.dentella@tin.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



view thread (3+ messages)

Message-ID: <5950.992284817@sss.pgh.pa.us>
Permalink:  ../5950.992284817@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5950.992284817@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sandro.dentella@tin.it
  Subject: Re: How to determine PRIMARY KEYS
  In-Reply-To: <5950.992284817@sss.pgh.pa.us>

* 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