Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta9xb-0007f0-Eu for pgsql-bugs@postgresql.org; Sun, 18 Nov 2012 18:51:15 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta9xZ-00004t-Fj for pgsql-bugs@postgresql.org; Sun, 18 Nov 2012 18:51:15 +0000 Received: from anarazel.de (p5DDC7C56.dip.t-dialin.net [93.220.124.86]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0Ma987-1TqzLx2qy7-00LrCv; Sun, 18 Nov 2012 19:51:06 +0100 Received: by anarazel.de (Postfix, from userid 1000) id E92DD1C00E5; Sun, 18 Nov 2012 19:51:05 +0100 (CET) Date: Sun, 18 Nov 2012 19:51:05 +0100 From: Andres Freund To: Tom Lane Cc: Igor , pgsql-bugs@postgresql.org Subject: Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument" Message-ID: <20121118185102.GA1325@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> <4024.1353262722@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4024.1353262722@sss.pgh.pa.us> X-Provags-ID: V02:K0:heiIesPMmgthiZykfPW4VwoI8RO9XyiVI0vDCHuxCbH s7Ct5J6InLjQXx3oDxud9wQHXuPcu7xZnQRlfdtexitjPTa+j4 KEo6b/2EnvN95o0bfGHkaN8TgWpmlL1QkC5b+iUpJ05j3uSdd+ mY7vQcg2PIzvF/KHD3MgKX0xHHzop91Td2gsVcEfOZr/Gm015b sbeDQZx4MpXpTBCVyVXxIbjKSNflHAWFoQDNynD+oxucjir9oG NPZEkfY5+ujCSu1wn5UWKowf2RyV2BwqbWhxkc895l+wYu5Lmy TdufYOn7lTRxN0jnmXs9YFV88EHGzLhLe640CJHmqOzJdjlW8N 98vB4/i57UL2v2WITUOJKbBRa8GnETvd1hYJiFzys X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201211/136 X-Sequence-Number: 34694 On 2012-11-18 13:18:42 -0500, Tom Lane wrote: > 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. Thats a good point. But #7545 was on OSX so its not really that much evidence a larger value doesn't work on non-bsdish systems. In fact, a setting of 32 days seems not to cause any immediate problems here on linux, even when choosing the timeout in a way it results in a negative timeout value for poll. Not sure what its waiting for, but it doesn't crash. Greetings, Andres Freund