Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT6vi-0003WQ-FL for pgsql-bugs@arkaria.postgresql.org; Tue, 21 May 2019 15:43:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hT6vg-00059e-9j for pgsql-bugs@arkaria.postgresql.org; Tue, 21 May 2019 15:43:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT6vf-000543-Uy for pgsql-bugs@lists.postgresql.org; Tue, 21 May 2019 15:43:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT6vc-00030l-U9 for pgsql-bugs@lists.postgresql.org; Tue, 21 May 2019 15:43:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x4LFhjEi022339; Tue, 21 May 2019 11:43:45 -0400 From: Tom Lane To: Steve cc: pgsql-bugs@lists.postgresql.org, Euler Taveira Subject: Re: BUG #15815: Upgraded from 9.6.8 > 9.6.12 on AWS Aurora: SELECTs causing segmentation fault In-reply-to: References: <15815-b227fe592d6e1ddf@postgresql.org> Comments: In-reply-to Steve message dated "Tue, 21 May 2019 09:35:04 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <22337.1558453425.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 21 May 2019 11:43:45 -0400 Message-ID: <22338.1558453425@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Steve writes: > Column | Type | Modifiers > ----------------+---------+---------------------------------------------= --------- > a | integer | not null default > nextval('{table3}_seq'::regclass) > b | integer | > c | integer | > d | text | > Indexes: > =E2=80=A6 PRIMARY KEY, btree (a) > =E2=80=A6 UNIQUE CONSTRAINT, btree (b, c) > =E2=80=A6 btree (b) > =E2=80=A6 btree (c) > =E2=80=A6 btree (lower("substring"(d, 1, 1000)) text_pattern_ops, b) > =E2=80=A6 btree (lower("substring"(d, 1, 1000)), b) > Foreign-key constraints: > =E2=80=A6 FOREIGN KEY (b) REFERENCES {table2}(b) > =E2=80=A6 FOREIGN KEY (c) REFERENCES {table1}(c) Hm, so this query is probably using the last of those indexes --- could we see EXPLAIN output to confirm that? If so, a plausible explanation is that a portion of that index is corrupt, although it's certainly not very nice that you're getting a crash rather than an error report. If you're in a hurry to restore functionality, dropping and recreating that index would likely make the problem go away ... but it would also destroy the evidence we'd need to find the cause of the crash. So if you can hold off till we see the stack trace, that'd be nice. regards, tom lane