Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: log_rotatio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 9628 of 10389
Post > Topic >>

Re: log_rotation_age integer overflow display quirk

by tgl@[EMAIL PROTECTED] (Tom Lane) Jul 6, 2008 at 03:50 PM

Bernd Helmle <mailings@[EMAIL PROTECTED]
> writes:
> --On Freitag, Juli 04, 2008 11:31:07 +0200 Stefan Kaltenbrunner 
> <stefan@[EMAIL PROTECTED]
> wrote:
>> I just noticed that setting log_rotation_age to a value larger than 24
>> days results in rather weird output (I have not actually tested yet if
>> that affects the functionality too or just the output):

> This seems to be a bug in _ShowOption(), where the corresponding value
is 
> converted into milliseconds to get the biggest possible time unit to 
> display. This overflows the result variable (which is declared as int), 
> causing this strange output.

Yup --- fixed by using int64 arithmetic for the units conversion.

			regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 3 Posts in Topic:
log_rotation_age integer overflow display quirk
stefan@[EMAIL PROTECTED]   2008-07-04 11:31:07 
Re: log_rotation_age integer overflow display quirk
mailings@[EMAIL PROTECTED  2008-07-04 15:18:23 
Re: log_rotation_age integer overflow display quirk
tgl@[EMAIL PROTECTED] (T  2008-07-06 15:50:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 19:15:33 CDT 2008.