Re: rename primary key

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Seb <spluque(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: rename primary key
Date: 2010-01-15 06:35:17
Message-ID: 4B500CA5.5060006@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Le 15/01/2010 04:39, Seb a écrit :
> On Fri, 15 Jan 2010 12:34:15 +0900,
> Ian Barwick <barwick(at)gmail(dot)com> wrote:
> [...]
> On a related note: how come pgadmin3 shows "Indexes (0)" for such a
> table, even though an index does exist for the primary key? Are these
> indexes created in a separate table that is looked up by the foo table?
>

Primary keys are constraints. They are enforced with an index, but
actually they are constraints. So we put them on the constraints nodes.

There is the same behaviour for unique constraints.

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Seb 2010-01-15 16:04:56 indexes
Previous Message Seb 2010-01-15 03:39:23 Re: rename primary key