Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZxdOE-0000ap-KW for pgsql-performance@arkaria.postgresql.org; Sat, 14 Nov 2015 16:09:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZxdOD-0000YL-1w for pgsql-performance@arkaria.postgresql.org; Sat, 14 Nov 2015 16:09:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZxdMW-0004iS-II for pgsql-performance@postgresql.org; Sat, 14 Nov 2015 16:07:37 +0000 Received: from nm10-vm3.bullet.mail.ne1.yahoo.com ([98.138.91.140]) by magus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZxdMR-0005WA-AH for pgsql-performance@postgresql.org; Sat, 14 Nov 2015 16:07:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1447517247; bh=IXgsOxy1f2wUJUph2QEObXmtDmW41eUgC3YfPmKpCIo=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=YHhC+lMX8/6+MEGHrnJ9pGnD7F7/xVf6RfM43HoNJg+e/O16gVBBGsqZunyF5KeiL90oFljSxLWqgURiYJqfGEAid8HA6/wE/CTFEfIAi9pxKElyZWH0KtaxCpdskyajEIbRkzxsosiF0o5OOYeeSrHgzYzlGWc8U6lx0gvJAtlhEaCwYZglsKovmuU8KkbK3CPVrcRpBs0wLt9QosMKmn14/VFkTE0nhQvjWrD0Yfm0OHRUkyKvxkaEREzeJoFlig/qBVRje5FV8P+e4VKxpCFEdEpf01tFaalaAf8YhcShIXIs7PupDOY1yFGMsEMwzi5UfRx6Vx1/U9434BRNQg== Received: from [98.138.101.128] by nm10.bullet.mail.ne1.yahoo.com with NNFMP; 14 Nov 2015 16:07:27 -0000 Received: from [98.138.88.236] by tm16.bullet.mail.ne1.yahoo.com with NNFMP; 14 Nov 2015 16:07:27 -0000 Received: from [127.0.0.1] by omp1036.mail.ne1.yahoo.com with NNFMP; 14 Nov 2015 16:07:27 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 820656.72573.bm@omp1036.mail.ne1.yahoo.com X-YMail-OSG: d96UR1QVM1lHoWOzUtnuP5xKT2xxn0mWQ23SO4QaeKqfXfdOwfnalD0lsrn5wAz 9s95FajVls.B4gB13QI4mf9cItb7i.UVAbI6At32vw5A9ka_o9_nItio25kPeoMh8PRIOeAvgKcu TZCYdVqOEuuwQ5S9ij8IrHxxcR6Qnr4U2P9uv0XZqRIIjlwAuvXHlp7LbkzCDA140u_lpgzs99So 9k3iPaxgJZsrfhbxKIYcbyf6BO7gIjAs40U0e37SDIJqDLEDcgL9HADqDpfX3VmXbjJcx_JgR82n w9.EVRNHExl2o2rWintRgpBAfwJ9Kwv8ImOEAdlGqx5Tn16pC9OFV.ah6vFLZh.owavPMbeVss7z gdFtlsVG0QmwLdkzCnvatWGQ2aaXPILjJClibDRvFXd_SJk2WiHXqfilX4ABtOj3.MqFrVJrl.TG G8JMKv7ydrww00JKLGsDc5TNsf1m61qJqmbJz9g5P7_gVY.wa.4lRH.A8JF5VXXmbNvy7RUk- Received: by 98.138.101.169; Sat, 14 Nov 2015 16:07:27 +0000 Date: Sat, 14 Nov 2015 16:07:26 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Jim Nasby , Jason Jho , "pgsql-performance@postgresql.org" Message-ID: <808512339.63860.1447517246839.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <564658DA.2000804@BlueTreble.com> References: <564658DA.2000804@BlueTreble.com> Subject: Re: Hanging query on a fresh restart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 2069 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Friday, November 13, 2015 3:41 PM, Jim Nasby wrote: > On 11/10/15 3:42 PM, Jason Jho wrote: >> We using Postgres 9.3.10 >> What is the most confusing part in all of this is why a DROP >> SCHEMA CASCADE and a fresh pg_restore would somehow fix the >> problem. Even a fresh reboot didn't fix it. > > Without more info we're stuck guessing. You might try submitting > a ticket with amazon, especially if you can reproduce this. There have been occasional reports of corrupted indexes causing endless loops which could cause these symptoms if one core was pegged at 100% during the incident. There are many possible causes for such corruption -- see: http://rhaas.blogspot.com/2012/03/why-is-my-database-corrupted.html That said, there was a long-standing bug in btree index page deletion (which could only happen during vacuum or autovacuum) which was fixed in 9.4: http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=efada2b8e920adfdf7418862e939925d2acd1b89 It was pretty hard to hit, and normally wouldn't cause these symptoms, but if there was a "perfect storm" of events before the problem self-corrected, I think it might possibly lead to this. If we could somehow confirm that this old bug was the cause, it might justify pushing this patch back into older branches. As the commit message said: | This bug is old, all supported versions are affected, but this patch is too | big to back-patch (and changes the WAL record formats of related records). | We have not heard any reports of the bug from users, so clearly it's not | easy to bump into. Maybe backpatch later, after this has had some field | testing. Did you make a filesystem-level copy of the data directory? If so, the first step in checking this theory would be to restore a copy and reindex all indexes used by the problem query to see if that fixes it. If it does, close examination of the corrupted index might provide clues about how the corruption occurred. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance