Re: [SQL] SQL-Query 2 get primary key - Mailing list pgsql-sql

From jose' soares
Subject Re: [SQL] SQL-Query 2 get primary key
Date
Msg-id 36D15A55.634FFC5A@bo.nettuno.it
Whole thread Raw
In response to Re: [SQL] SQL-Query 2 get primary key  (Michael Olivier <molivier@yahoo.com>)
List pgsql-sql

Michael Olivier ha scritto:

> This doesn't work for me in 6.3.2-10 on RH Linux. Is this a newer
> feature?
>
> ---jose' soares <sferac@bo.nettuno.it> wrote:
> >
> > You may query pg_indexes as in:
> >
> > select * from pg_indexes where tablename = 'test';
> >
> > tablename|indexname|indexdef
> >
> ---------+---------+-----------------------------------------------------------------------
> >
> > test     |test_pkey|CREATE UNIQUE INDEX "test_pkey" ON "test" USING
> btree
> > ("id" "int4_ops")
> > (1 row)
>

This is my version:

hygea=> select version();
version
-------------------------------------------------------------
PostgreSQL 6.4.0 on i586-pc-linux-gnu, compiled by gcc 2.7.2.
(1 row)

--
                               - Jose' -



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] SQL query _slow_
Next
From: "Roderick A. Anderson"
Date:
Subject: Re: your mail