coredump of 9.3.2 - Mailing list pgsql-hackers

From Teodor Sigaev
Subject coredump of 9.3.2
Date
Msg-id 52A751EA.6000303@sigaev.ru
Whole thread Raw
Responses Re: coredump of 9.3.2
List pgsql-hackers
Hi!

Rather simple script (original query was a 500 lines of SQL with >100 Mb of 
gzipped dump. Query is looked strange, but actually it was auto-generated):

CREATE TABLE t (a int, b int);
CREATE TABLE tt (c int);

INSERT INTO t VALUES (1,1), (2,2);
INSERT INTO tt VALUES (2);


SELECT    *
FROM    t
WHERE (    CASE        WHEN a%2 IN (SELECT c FROM tt) THEN a    END IN (SELECT c FROM tt)
);

I suppose, the problem is connected to hashed subplan, but I'm not very familiar 
with executor. And this affects all supported versions of pgsql.


-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 



pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: Dynamic Shared Memory stuff
Next
From: Antonin Houska
Date:
Subject: Re: Backup throttling