Search Postgresql Archives

Re: Receiving many more rows than expected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vincent de Phily <vincent.dephily@xxxxxxxxxxxxxxxxx> writes:
> In case it changes anything, this is the uncut (but still anonimized) 
> function:

>     query = """UPDATE foo SET processing = 't' WHERE id IN                                                                                                                                              
>            (SELECT id FROM foo WHERE processing = 'f' ORDER BY id ASC LIMIT %d
>             FOR UPDATE)                                                                                                              
>            RETURNING *""" % (conf_getint('DEFAULT', 'push_count', 5000),)

Well, of course this view of things exposes a relevant failure mode
you hadn't mentioned: maybe sometimes the conf_getint() call returns
something other than 5000?

			regards, tom lane



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux