Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta9SC-000556-7Z for pgsql-bugs@postgresql.org; Sun, 18 Nov 2012 18:18:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta9SA-0001Kb-Nb for pgsql-bugs@postgresql.org; Sun, 18 Nov 2012 18:18:47 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qAIIIg14004025; Sun, 18 Nov 2012 13:18:43 -0500 (EST) From: Tom Lane To: Andres Freund cc: Igor , pgsql-bugs@postgresql.org Subject: Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument" In-reply-to: <20121118180654.GB30822@awork2.anarazel.de> References: <20121118162852.GB14145@awork2.anarazel.de> <3078.1353259769@sss.pgh.pa.us> <3366.1353260695@sss.pgh.pa.us> <20121118180654.GB30822@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 18 Nov 2012 19:06:54 +0100" Date: Sun, 18 Nov 2012 13:18:42 -0500 Message-ID: <4024.1353262722@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201211/132 X-Sequence-Number: 34690 Andres Freund 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