From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgresql(dot)org, James <im-james(at)hotmail(dot)com>, pgsql-bugs(at)postgresql(dot)org, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] [PATCHES] BUG #2569: statement_timeout bug on |
Date: | 2006-08-09 21:18:22 |
Message-ID: | 200608092118.k79LIMd21863@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers pgsql-patches |
OK, done.
---------------------------------------------------------------------------
Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > Tom Lane wrote:
> >> Seems like this probably ought to round up not down:
>
> > I thought about that, but because statement_timeout is in millis, and
> > not micros, we can't have a value that gets rounded down. I am
> > thinking a cleaner solution is to check for secs and if that is 0 and
> > microsecs < 1000, you set millis = 1.
>
> This is much uglier, probably slower, and fixes the problem only for
> the zero case --- it is just as wrong to wait 1 msec when the caller
> asked for 1.5 msec. And per your own observation, statement_timeout
> is not the only source of the wait values, so this code must not
> assume that the value is a multiple of 1msec.
>
> Please do it the other way.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Brian C. DeRocher | 2006-08-09 21:24:41 | numerics lose scale and precision in views of unions |
Previous Message | Tom Lane | 2006-08-09 20:50:44 | Re: [PATCHES] BUG #2569: statement_timeout bug on Windows |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-08-09 21:19:10 | Re: WIN32 Build? |
Previous Message | Shoaib Mir | 2006-08-09 21:15:10 | Re: WIN32 Build? |
From | Date | Subject | |
---|---|---|---|
Next Message | korryd@enterprisedb.com | 2006-08-09 21:24:28 | Re: Plugins redux (was Re: [PATCHES] PL instrumentation plugin |
Previous Message | Tom Lane | 2006-08-09 20:50:44 | Re: [PATCHES] BUG #2569: statement_timeout bug on Windows |