Re: [HACKERS] coredump of 9.3.2

2013-12-10 Thread Tom Lane
Teodor Sigaev writes: > 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 support

Re: [HACKERS] coredump of 9.3.2

2013-12-10 Thread Josh Berkus
On 12/10/2013 09:39 AM, Teodor Sigaev wrote: > > SELECT > * > FROM > t > WHERE ( > CASE > WHEN a%2 IN (SELECT c FROM tt) THEN a > END IN (SELECT c FROM tt) > ); Wow, it wouldn't have occured to me that that was even supported syntax. I'm not suprised that it doesn't work

[HACKERS] coredump of 9.3.2

2013-12-10 Thread Teodor Sigaev
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