pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Rylander <mrylander@gmail.com>
To: Sam Adams <samadams@myfastmail.com>
To: PostgreSQL SQL <pgsql-sql@postgresql.org>
Subject: Re: Serial and Index
Date: Sun, 27 Feb 2005 17:43:23 +0000
Message-ID: <b918cf3d0502270943422cc05d@mail.gmail.com> (raw)
In-Reply-To: <1109508892.19366.216118816@webmail.messagingengine.com>
References: <1109508892.19366.216118816@webmail.messagingengine.com>

On Sun, 27 Feb 2005 12:54:52 +0000, Sam Adams <samadams@myfastmail.com> wrote:
> I read at http://jamesthornton.com/postgres/FAQ/faq-english.html#4.15.1
> that when a serial is created then an index is created on the column.
> However I can't seem to find this anywhere in the PoistgreSQL manual. Is
> this true? Thanks.

The FAQ entry is incorrect.  If you make your SERIAL column the
PRIMARY KEY of the table, however, a UNIQUE index will be created.

-- 
Mike Rylander
mrylander@gmail.com
GPLS -- PINES Development
Database Developer
http://open-ils.org



view thread (7+ messages)

Message-ID: <b918cf3d0502270943422cc05d@mail.gmail.com>
Permalink:  ../b918cf3d0502270943422cc05d@mail.gmail.com/
Also on:    postgresql.org/message-id/b918cf3d0502270943422cc05d@mail.gmail.com

 · 

reply

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: mrylander@gmail.com, samadams@myfastmail.com
  Subject: Re: Serial and Index
  In-Reply-To: <b918cf3d0502270943422cc05d@mail.gmail.com>

* 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