From: | Michael Paesold <mpaesold(at)gmx(dot)at> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Proposed patch for sequence-renaming problems |
Date: | 2005-10-02 10:47:02 |
Message-ID: | 433FBAA6.2040101@gmx.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Tom Lane wrote:
> Here's an updated version of the patch. There's now just one nextval()
> function, taking regclass, and backwards compatibility is handled
> through an implicit text-to-regclass cast. Existing dumps will not see
> any behavioral changes because nextval('foo') will be dumped as
> nextval('foo'::text), but new entries of "nextval('foo')" will be
> captured as regclass constants instead.
>
> I noted that this version caused a couple more regression tests to fail;
> for instance, the constraints test was expecting that it could drop and
> recreate a sequence that was referenced by a default expression spelled
> as "nextval('foo')". So we are paying for improved ease of use by
> taking a larger backwards-compatibility risk than the original patch
> did.
>
> Last call for objections ...
No objection, but +1 from me. If this is the best solution people can
agree on, better now than later. The missing dependencies for sequences
were a bug in the first place, IMHO.
Best Regards,
Michael Paesold
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2005-10-02 12:32:45 | Re: [PERFORM] A Better External Sort? |
Previous Message | Thomas Hallgren | 2005-10-02 10:20:05 | Re: Socket problem using beta2 on Windows-XP |
From | Date | Subject | |
---|---|---|---|
Next Message | Steve Woodcock | 2005-10-02 10:50:29 | Make 2PC error messages match docs |
Previous Message | Dave Page | 2005-10-02 09:00:32 | Re: Making pgxs builds work with a relocated installation |