Re: primary key index - Mailing list pgsql-general

From Nicolas Barbier
Subject Re: primary key index
Date
Msg-id b0f3f5a10705140503s398abc76iba80bee0864da741@mail.gmail.com
Whole thread Raw
In response to Re: primary key index  (Sim Zacks <sim@compulab.co.il>)
List pgsql-general
2007/5/14, Sim Zacks <sim@compulab.co.il>:

> I read the section on indexes where it says that PostGreSQL creates a unique
> index, but I didn't see an index on the table so I didn't know if it was implicit or if
> for some reason my primary keys weren't becoming indexes.

You are supposed to see those indexes. Try "\d tablename" in psql. It
should give you a bunch of information, including something like:

Indexes:
    "tablename_pkey" PRIMARY KEY, btree (keyfieldname)

Where tablename is your table's name, and keyfieldname the name of the
column that is your PK.

greetings,
Nicolas

--
Nicolas Barbier
http://www.gnu.org/philosophy/no-word-attachments.html

pgsql-general by date:

Previous
From: Sim Zacks
Date:
Subject: IGNORE Re: explain problem
Next
From: Oleg Bartunov
Date:
Subject: Re: tsearch2 problem