Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKS79-0003Uc-A9 for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Dec 2016 15:50:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cKS78-00080U-Na for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Dec 2016 15:50:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cKS6T-0007D7-Mz for pgsql-bugs@postgresql.org; Fri, 23 Dec 2016 15:49:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cKS6M-0003Z7-8X for pgsql-bugs@postgresql.org; Fri, 23 Dec 2016 15:49:52 +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 uBNFniMb027433; Fri, 23 Dec 2016 10:49:44 -0500 From: Tom Lane To: Josef Machytka cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14471: PostgreSQL 9.6 "NOT IN" in select causes crash with "ERROR: unknown error" In-reply-to: References: <20161221094443.25614.47807@wrigleys.postgresql.org> <6818.1482333970@sss.pgh.pa.us> <18191.1482336664@sss.pgh.pa.us> Comments: In-reply-to Josef Machytka message dated "Fri, 23 Dec 2016 10:08:42 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27431.1482508184.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 23 Dec 2016 10:49:44 -0500 Message-ID: <27432.1482508184@sss.pgh.pa.us> X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Josef Machytka writes: > So I checked all logs and it turned out one of databases involved vent in= to > recovery mode because some of its connections was killed. > Probably out of memory killer did it. So it caused chain reaction. And > billing query was canceled "due to administration command" and it was sho= wn > through dblink as "unknown error". OK. In that case I'm betting that what dblink saw was a network error on its next attempt to send a command. I've not dug into the code to verify this positively, but I think the behavior will be improved by Joe Conway's recent patch, https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommitdiff;h=3D2f= 802d95b4904dbed3dfdca1b3a607cd085d2e20 regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs