Re: serial

From: "Gregory Williamson" <Gregory(dot)Williamson(at)digitalglobe(dot)com>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>, "Gustavo Rosso" <grosso(at)sadaic(dot)org(dot)ar>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: serial
Date: 2008-12-04 14:47:46
Message-ID: 8B319E5A30FF4A48BE7EEAAF609DB233021F37C5@COMAIL01.digitalglobe.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The esteemed Scott Marlowe said:

>
> On Thu, Dec 4, 2008 at 7:42 AM, Gustavo Rosso <grosso(at)sadaic(dot)org(dot)ar> wrote:
> > I created this table:
> >
<...>
>
> Because MySQL taught you bad habits? You told the db to insert a 0,
> so it inserted a 0.

With respect, sir, let me point out that Informix usage says to insert a zero to trigger a serial column, so don't be indicting Gustavo on MySQL use -- he might be coming from a real database where usage is different.

Those of us who came to postgres from Informix-land made [perhaps] the same mistakes. Not a bad *habit* unless you can prove to me that the spec says otherwise. (Maybe you can -- the SQL formal definitions seem to be deliberately opaque and often do not define _how_ a given behavior should be implemented). Just a matter of indoctrination into the local ways of doing serials.

Greg Williamson
Senior DBA
DigitalGlobe

Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information and must be protected in accordance with those provisions. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

(My corporate masters made me say this.)

In response to

  • Re: serial at 2008-12-04 14:06:33 from Scott Marlowe

Responses

  • Re: serial at 2008-12-04 15:34:54 from Scott Marlowe
  • Re: serial at 2008-12-04 18:57:35 from Raymond O'Donnell

Browse pgsql-general by date

  From Date Subject
Next Message Hiroshi Saito 2008-12-04 14:51:44 Re: Linked server query problem
Previous Message Gustavo Rosso 2008-12-04 14:42:13 serial