From: Guillaume Lelarge <guillaume@lelarge.info>
To: Seb <spluque@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: rename primary key
Date: Fri, 15 Jan 2010 07:35:17 +0100
Message-ID: <4B500CA5.5060006@lelarge.info> (raw)
In-Reply-To: <87d41c11g4.fsf@kolob.sebmags.homelinux.org>
References: <87hbqo11yg.fsf@kolob.sebmags.homelinux.org>
<1d581afe1001141934x2c525992w2e4bcf40a3113207@mail.gmail.com>
<87d41c11g4.fsf@kolob.sebmags.homelinux.org>
Le 15/01/2010 04:39, Seb a écrit :
> On Fri, 15 Jan 2010 12:34:15 +0900,
> Ian Barwick <barwick@gmail.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.orghttp://dalibo.com
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-sql@postgresql.org
Cc: guillaume@lelarge.info, spluque@gmail.com
Subject: Re: rename primary key
In-Reply-To: <4B500CA5.5060006@lelarge.info>
* 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