pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Igor <igorya.inscriptio@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument"
Date: Sun, 18 Nov 2012 13:18:42 -0500
Message-ID: <4024.1353262722@sss.pgh.pa.us> (raw)
In-Reply-To: <20121118180654.GB30822@awork2.anarazel.de>
References: <E1TZpVE-0005d4-50@wrigleys.postgresql.org>
	<20121118162852.GB14145@awork2.anarazel.de>
	<CALdM5eqgGyGChJWxmtbyuWeZ363mmMCmx9JfrWNgp3HjHKv3-A@mail.gmail.com>
	<CALdM5eqo5ADe5qe54KqPJK4r-99H4X8vWz41grTiLUpqoxg1gw@mail.gmail.com>
	<3078.1353259769@sss.pgh.pa.us>
	<CALdM5ep0oJXGW6sQd5nJX5T8J1P4WsK0gM6O-oCfheY+Yy4vAg@mail.gmail.com>
	<3366.1353260695@sss.pgh.pa.us>
	<20121118180654.GB30822@awork2.anarazel.de>

Andres Freund <andres@2ndquadrant.com> writes:
> On 2012-11-18 12:44:55 -0500, Tom Lane wrote:
>> I'm inclined to propose limiting both of these to the equivalent of 15
>> days.  Alternatively we could try to rejigger things to prevent asking
>> WaitLatch to wait for more than 2^31 msec, but it's not real clear to
>> me that it's worth the trouble.

> In general I have no problem imposing lower limits, but it seems to be a
> ugly to get errors for an invalid configuration file after a minor
> version upgrade. While the wal_sender_timeout isn't really likely to be
> that high I don't think the log_rotation_age one is unlikely to be set
> to something in the month range, thats not an unreasonable value.

Well, we have two reports of people trying such values (assuming that
#7545 actually is the same thing), and it didn't work for either of
them.  I don't think it's a problem to restrict the value to something
that will work rather than fail.

If you're worried that there's somebody out there using 20 or 21 days
as log_rotation_age, I guess we could limit to INT_MAX/1000 seconds or
something just less than that.

			regards, tom lane




view thread (28+ messages)  latest in thread

Message-ID: <4024.1353262722@sss.pgh.pa.us>
Permalink:  ../4024.1353262722@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4024.1353262722@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, igorya.inscriptio@gmail.com
  Subject: Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument"
  In-Reply-To: <4024.1353262722@sss.pgh.pa.us>
  References: <E1TZpVE-0005d4-50@wrigleys.postgresql.org> <20121118162852.GB14145@awork2.anarazel.de> <CALdM5eqgGyGChJWxmtbyuWeZ363mmMCmx9JfrWNgp3HjHKv3-A@mail.gmail.com> <CALdM5eqo5ADe5qe54KqPJK4r-99H4X8vWz41grTiLUpqoxg1gw@mail.gmail.com> <3078.1353259769@sss.pgh.pa.us> <CALdM5ep0oJXGW6sQd5nJX5T8J1P4WsK0gM6O-oCfheY+Yy4vAg@mail.gmail.com> <3366.1353260695@sss.pgh.pa.us> <20121118180654.GB30822@awork2.anarazel.de> <4024.1353262722@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox