Re: Bug in Dependencies Code in 7.3.x?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tara Piorkowski <tara(at)vilaj(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bug in Dependencies Code in 7.3.x?
Date: 2002-12-31 16:36:37
Message-ID: 200212311636.gBVGabV17274@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Seems this is already a TODO:

* Have sequence dependency track use of DEFAULT sequences, seqname.nextval

---------------------------------------------------------------------------

Tom Lane wrote:
> Tara Piorkowski <tara(at)vilaj(dot)com> writes:
> > Regardless, my thinking had been that I was looking at an INT with a
> > DEFAULT set, in which case I think this would be a bonified bug, thus my
> > report.
>
> Right --- but *if you'd declared it that way*, the system would have
> reacted in the way you were expecting. SERIAL sets up dependencies that
> prevent you from dropping the sequence as a separate entity, while an
> INT column with a handmade DEFAULT expression doesn't.
>
> Ideally, a SERIAL column would completely hide the fact that it's made
> from a sequence and a default expression. We're not there yet ... but
> 7.3 is closer than ever before. (It'd be interesting to look at whether
> Rod Taylor's DOMAIN work could help button things up.)
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-12-31 17:07:52 Re: Bug in Dependencies Code in 7.3.x?
Previous Message Palle Girgensohn 2002-12-31 04:47:54 Re: why was libpq.so's version number bumped?