Re: [PATCHES] ALTER SEQUENCE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rod Taylor <rbt(at)rbt(dot)ca>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] ALTER SEQUENCE
Date: 2003-03-05 00:14:23
Message-ID: 15514.1046823263@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

Rod Taylor <rbt(at)rbt(dot)ca> writes:
> Might get somewhere by making a special domain thats marked as being
> serial, and using that in the column.

I recall some discussion last year about making serial et al. into
domains over int4 and int8, rather than their current utter-hack
implementation. Can't recall if we found a problem with the idea,
or no one got around to doing it, or it just didn't seem to clean
things up enough to be worth the trouble. (AFAICS you'd still need
special-case code to set up the appropriate default expression for
each column; the domain constraint mechanism wouldn't handle that
for you.)

Seems worth looking at, though.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2003-03-05 00:15:04 Re: phpBB2 slow on postgres vs mysql ?
Previous Message scott.marlowe 2003-03-05 00:03:33 Re: phpBB2 slow on postgres vs mysql ?

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2003-03-05 00:20:29 Re: Updateable views...
Previous Message Tom Lane 2003-03-05 00:03:05 Re: Updateable views...

Browse pgsql-patches by date

  From Date Subject
Next Message Rod Taylor 2003-03-05 04:22:07 Re: [PATCHES] ALTER SEQUENCE
Previous Message Alan Gutierrez 2003-03-04 23:27:03 Re: XML ouput for psql