Received: from necker.ac-rouen.fr (smtp.ac-rouen.fr [194.167.110.3]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5JEaxa08923 for ; Tue, 19 Jun 2001 10:36:59 -0400 (EDT) (envelope-from david.bouriaud@ac-rouen.fr) Received: from ac-rouen.fr (localhost.localdomain [127.0.0.1]) by necker.ac-rouen.fr (8.11.0/8.11.0) with ESMTP id f5JEcTf20926 for ; Tue, 19 Jun 2001 16:38:29 +0200 Message-ID: <3B2F63F4.ED1215AB@ac-rouen.fr> Date: Tue, 19 Jun 2001 16:38:44 +0200 From: David BOURIAUD X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.14 i686) X-Accept-Language: fr, en MIME-Version: 1.0 To: "pgsql-sql@postgresql.org" Subject: Re: About primary keys. References: <3B2F4128.D9D38897@ac-rouen.fr> <20010619074918.A30985@cc.usu.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200106/292 X-Sequence-Number: 3555 Roberto Mello wrote: > > On Tue, Jun 19, 2001 at 02:10:16PM +0200, David BOURIAUD wrote: > > Hi the list ! > > Is there a way to get in system tables all the primary keys of a table ? > > There's a recipe that is related to that in my Postgres CookBook that > you could adapt to your needs: > > http://www.brasileiro.net/postgres/cookbook/view-one-recipe.adp?recipe_id=36 > > -Roberto Hi ! Thankx ! Indeed, it could (and will be) adapted, but it uses many unions for one unique querry. It's a shame that there is no operator to check if a value belongs to an int2vector. Why not having an operator such as this one : select ... from .... where attribute in int2vector ? This could be included in the wish list, couldn't it ? Anyway, thanks, for I can go further in my programm. -- David BOURIAUD ---------------------------------------------------------- In a world without walls or fences, what use do we have for windows or gates ? ---------------------------------------------------------- ICQ#102562021