Unix Technical Forum

Re: thw rewriter and default values, again

This is a discussion on Re: thw rewriter and default values, again within the pgsql Hackers forums, part of the PostgreSQL category; --> Jaime Casanova <systemguards@gmail.com> writes: > The only problem i have found until now is that > update v_foo set ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 05:06 AM
Greg Stark
 
Posts: n/a
Default Re: thw rewriter and default values, again


Jaime Casanova <systemguards@gmail.com> writes:

> The only problem i have found until now is that
> update v_foo set col1 = DEFAULT; execute nextval twice per every record.
> so there will be a gasp between numbers, but AFAIK nextval has no guarantee
> of returning sequential numbers.


While there's no guarantee that strong there's still an expected behaviour.
sequences generate sequential numbers and only skip in specific cases.

I think this would still surprise and bother most users.

--
greg


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 05:06 AM
Jaime Casanova
 
Posts: n/a
Default Re: thw rewriter and default values, again

On 28 May 2005 10:25:48 -0400, Greg Stark <gsstark@mit.edu> wrote:
>
> Jaime Casanova <systemguards@gmail.com> writes:
>
> > The only problem i have found until now is that
> > update v_foo set col1 = DEFAULT; execute nextval twice per every record.
> > so there will be a gasp between numbers, but AFAIK nextval has no

> guarantee
> > of returning sequential numbers.

>
> While there's no guarantee that strong there's still an expected behaviour.
> sequences generate sequential numbers and only skip in specific cases.
>
> I think this would still surprise and bother most users.
>

Certainly, i will look deeper in it.

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:22 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com