Re: [HACKERS] DROPping tables with SERIALs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vadim Mikheev <vadim(at)krs(dot)ru>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] DROPping tables with SERIALs
Date: 1998-11-29 17:07:11
Message-ID: 24924.912359231@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Vadim Mikheev <vadim(at)krs(dot)ru> writes:
> Tom Lane wrote:
>> No, I think it should *only* substitute for NULL. Why assume
>> zero is special?

> As I remember this is how SERIAL works in Informix.

Ah. OK, if that's what they do then I agree we ought to act the same.

>> Another question is whether a SERIAL field should automatically be
>> UNIQUE (ie, create a unique index on it to prevent mistakes in manual
>> insertion of values for the field).

> Once again - I would like to see SERIAL compatible with
> SERIAL/IDENTY in other RDBMSes.

Yes, and? What do the other ones do?

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 1998-11-29 19:56:34 How to see rules,functions and triggers in psql ?
Previous Message Vadim Mikheev 1998-11-29 08:24:37 Re: [HACKERS] DROPping tables with SERIALs