pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: David Pratt <fairwinds@eastlink.ca>
Cc: pgsql-admin@postgresql.org
Subject: Re: Adding Serial Type
Date: Sat, 28 May 2005 13:27:54 -0500
Message-ID: <20050528182754.GA11909@wolff.to> (raw)
In-Reply-To: <BD5CCB8C-CF9D-11D9-AEE7-000A27B3B070@eastlink.ca>
References: <200408241143.08959.uwe@oss4u.com>
	<BD5CCB8C-CF9D-11D9-AEE7-000A27B3B070@eastlink.ca>

On Sat, May 28, 2005 at 14:27:17 -0300,
  David Pratt <fairwinds@eastlink.ca> wrote:
> Pretty basic question. Is it necessary to add NOT NULL or UNIQUE NOT 
> NULL to SERIAL or is this implicit and unnecessary?

Serials no longer generate a uniqie index by default. So in practice
you will normally want to declare them as PRIMARY KEYs. However there
are cases where you don't need this and the index is extra overhead.



view thread (7+ messages)  latest in thread

Message-ID: <20050528182754.GA11909@wolff.to>
Permalink:  ../20050528182754.GA11909@wolff.to/
Also on:    postgresql.org/message-id/20050528182754.GA11909@wolff.to

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruno@wolff.to, fairwinds@eastlink.ca
  Subject: Re: Adding Serial Type
  In-Reply-To: <20050528182754.GA11909@wolff.to>
  References: <200408241143.08959.uwe@oss4u.com> <BD5CCB8C-CF9D-11D9-AEE7-000A27B3B070@eastlink.ca> <20050528182754.GA11909@wolff.to>

* 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