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 2 of 3 Topic 9628 of 11009
Post > Topic >>

Re: log_rotation_age integer overflow display quirk

by mailings@[EMAIL PROTECTED] (Bernd Helmle) Jul 4, 2008 at 03:18 PM

--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):
>
>
> test=# show log_rotation_age;
>   log_rotation_age
> ------------------
>   -2134967296ms
> (1 row)

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.

-- 
  Thanks

                    Bernd

-- 
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 Fri Dec 5 8:25:51 CST 2008.