Re: Why doesn't the SERIAL data type automatically have a

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Ferindo Middleton Jr <fmiddleton(at)verizon(dot)net>
Cc: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Why doesn't the SERIAL data type automatically have a
Date: 2005-10-05 00:06:54
Message-ID: 20051005000654.GP40138@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, Oct 04, 2005 at 07:50:28PM -0400, Ferindo Middleton Jr wrote:
> Based on the feedback I received after I made that original post, it
> seemed most people don't use SERIAL with a unique constraint or primary
> key and I was blasted for making such a suggestion. I'm sorry... It

I don't think either assertion is true. I'd bet most of the developers
actually do normally use an index on a serial, since it's normally used
as a PK. And while people can be a bit terse with their replies, I
wouldn't say you were blasted. :)
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jim Buttafuoco 2005-10-05 01:01:12 Re: using pg_tables and tablename in queries
Previous Message Ferindo Middleton Jr 2005-10-04 23:54:47 Re: Why doesn't the SERIAL data type automatically have a