Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vne0E-0006Tk-Nh for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Dec 2013 00:38:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vne0E-0008KG-63 for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Dec 2013 00:38:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vne0C-0008Iy-TA for pgsql-bugs@postgresql.org; Tue, 03 Dec 2013 00:38:12 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vne0A-00076M-Ex for pgsql-bugs@postgresql.org; Tue, 03 Dec 2013 00:38:12 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vne09-0003FI-Ck for pgsql-bugs@postgresql.org; Tue, 03 Dec 2013 00:38:09 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1Vne03-0007ru-Sg for pgsql-bugs@postgresql.org; Tue, 03 Dec 2013 00:38:04 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8648: Segmentation fault on EXISTS with no *columns* To: pgsql-bugs@postgresql.org From: a.g.nienhuis@gmail.com Message-Id: Date: Tue, 03 Dec 2013 00:38:03 +0000 X-Pg-Spam-Score: -1.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 The following bug has been logged on the website: Bug reference: 8648 Logged by: Arjen Nienhuis Email address: a.g.nienhuis@gmail.com PostgreSQL version: 9.1.10 Operating system: Ubuntu Description: Hi, I found a bug trying to use EXISTS with a table with no columns. It works with SELECT 1 and not with SELECT *: arjen=> SELECT VERSION(); version ------------------------------------------------------------------------------------------------------------- PostgreSQL 9.1.10 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3, 64-bit (1 row) arjen=> CREATE TABLE test (); CREATE TABLE arjen=> SELECT EXISTS (SELECT 1 FROM test); ?column? ---------- f (1 row) arjen=> SELECT EXISTS (SELECT * FROM test); The connection to the server was lost. Attempting reset: Failed. !> In the log: 2013-12-03 01:23:36 CET LOG: server process (PID 17249) was terminated by signal 11: Segmentation fault 2013-12-03 01:23:36 CET LOG: terminating any other active server processes 2013-12-03 01:23:36 CET WARNING: terminating connection because of crash of another server process 2013-12-03 01:23:36 CET DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. 2013-12-03 01:23:36 CET HINT: In a moment you should be able to reconnect to the database and repeat your command. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs