Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 669DB7591C6 for ; Thu, 24 May 2012 19:36:03 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SXgdW-0004vk-Cu for pgsql-bugs@postgresql.org; Thu, 24 May 2012 22:36:03 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4OMZkC9002785; Thu, 24 May 2012 18:35:46 -0400 (EDT) To: Jeff Frost cc: pgsql-bugs@postgresql.org Subject: Re: 9.1.3 backends getting stuck in 'startup' In-reply-to: <7A939C5B-ABA4-4CF4-9473-F48989399813@pgexperts.com> References: <4F9AC452.3050102@pgexperts.com> <28484.1337887297@sss.pgh.pa.us> <4FBE9CDB.3030009@pgexperts.com> <2196.1337897586@sss.pgh.pa.us> <7A939C5B-ABA4-4CF4-9473-F48989399813@pgexperts.com> Comments: In-reply-to Jeff Frost message dated "Thu, 24 May 2012 15:25:37 -0700" Date: Thu, 24 May 2012 18:35:46 -0400 Message-ID: <2784.1337898946@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/193 X-Sequence-Number: 33164 Jeff Frost writes: > On May 24, 2012, at 3:13 PM, Tom Lane wrote: >> Huh. A bit bigger, but not by that much. It doesn't seem like this >> would be enough to make seqscan performance fall off a cliff, as it >> apparently did. Unless maybe the slightly-bloated catalogs were just a >> bit too large to fit in RAM, and so the repeated seqscans went from >> finding all their data in kernel disk buffers to finding none of it? > Seems unlikely. > Server has 128GB of RAM. Hm ... sure seems like that ought to be enough ;-), even with a near-2GB pg_attribute table. What's your shared_buffers setting? > BTW, when I connected to it this time, I had a really long time before my psql was able to send a query, so it seems to be still broken at least. Yeah, I was afraid that re-initdb would be at best a temporary solution. It would probably be useful to confirm the theory that relcache rebuild is what makes it stall. You should be able to manually remove the pg_internal.init file in the database's directory; then connect with psql, and time how long it takes before the pg_internal.init file reappears. regards, tom lane