Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJima-0006kY-SU for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Dec 2016 15:26:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cJimZ-0004JK-Q3 for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Dec 2016 15:26:19 +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_2) (envelope-from ) id 1cJimZ-0004J6-Al for pgsql-bugs@postgresql.org; Wed, 21 Dec 2016 15:26:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cJimS-0000uO-9U for pgsql-bugs@postgresql.org; Wed, 21 Dec 2016 15:26:18 +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 uBLFQAHa006819; Wed, 21 Dec 2016 10:26:10 -0500 From: Tom Lane To: josef.machytka@gmail.com 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: <20161221094443.25614.47807@wrigleys.postgresql.org> References: <20161221094443.25614.47807@wrigleys.postgresql.org> Comments: In-reply-to josef.machytka@gmail.com message dated "Wed, 21 Dec 2016 09:44:43 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6817.1482333970.1@sss.pgh.pa.us> Date: Wed, 21 Dec 2016 10:26:10 -0500 Message-ID: <6818.1482333970@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@gmail.com writes: > Looks like PostgreSQL 9.6 now very probably has some bug connected with "NOT > IN" command. We have select which actually crashes after several hours (!) > of run with message "ERROR: unknown error". Although according to explain > plan it should be done in ~40 minutes. This is an interesting report, but without enough information to replicate the problem, we're unlikely to be able to help you. A fragment of a query, with zero information about the underlying tables, is far from enough. The only occurrences of the string "unknown error" that I can find in the source code are in dblink and postgres_fdw (both reflecting cases where the remote server did not return an error message, itself a "shouldn't happen" situation). If you were using either, you didn't say so; but if you were, maybe taking a look in the remote server's log would be useful. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs