pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: a.g.nienhuis@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8648: Segmentation fault on EXISTS with no *columns*
Date: Tue, 03 Dec 2013 00:38:03 +0000
Message-ID: <E1Vne03-0007ru-Sg@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)  latest in thread

Message-ID: <E1Vne03-0007ru-Sg@wrigleys.postgresql.org>
Permalink:  ../E1Vne03-0007ru-Sg@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1Vne03-0007ru-Sg@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: a.g.nienhuis@gmail.com
  Subject: Re: BUG #8648: Segmentation fault on EXISTS with no *columns*
  In-Reply-To: <E1Vne03-0007ru-Sg@wrigleys.postgresql.org>
  References: <E1Vne03-0007ru-Sg@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox