From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | ttomov(at)abs(dot)bg, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Bug #485: strange behavior when creting rules with |
Date: | 2001-10-17 12:12:54 |
Message-ID: | Pine.BSF.4.21.0110170458300.21535-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Wed, 17 Oct 2001 pgsql-bugs(at)postgresql(dot)org wrote:
> Tony Tomov (ttomov(at)abs(dot)bg) reports a bug with a severity of 2
> The lower the number the more severe it is.
>
> Short Description
> strange behavior when creting rules with serial id
>
> Long Description
> I do not know if this is a bug, but for me this is a strange behavior.
> I will describe the following process.
Yep. Both the rule's new.id and the actual id are going to increment the
counter, since they'll both see the nextval for the serial sequence, the
new.id is going to shove in whatever is specified for the value exactly
as it was specified, so new.id is nextval(...) not the numeric result
of nextval(...). You're probably going to want to use a trigger instead.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-10-17 14:40:16 | Re: Bug #485: strange behavior when creting rules with serial id |
Previous Message | Lee Kindness | 2001-10-17 09:00:31 | Re: ecpg - GRANT bug |