planner failure with ProjectSet + aggregation + parallel query

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: planner failure with ProjectSet + aggregation + parallel query
Date: 2018-03-05 15:38:40
Message-ID: CA+TgmoYYawpgV7Ewo47YR9ZivBcMiqLwpp5kpvgNXLcQNnxZnQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

While trying to track down a bug today, I found a different bug.

As of 6946280cded903b6f5269fcce105f8ab1d455d33:

rhaas=# create table foo (a int);
CREATE TABLE
rhaas=# set min_parallel_table_scan_size = 0;
SET
rhaas=# set parallel_setup_cost = 0;
SET
rhaas=# set parallel_tuple_cost = 0;
SET
rhaas=# select generate_series(1, a) from foo group by a;
ERROR: ORDER/GROUP BY expression not found in targetlist

Without the SET commands, or without the GROUP BY, or without the SRF,
it successfully constructs a plan.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2018-03-05 15:48:26 Re: [PoC PATCH] Parallel dump to /dev/null
Previous Message Antonin Houska 2018-03-05 15:26:23 Too much memory allocated for ReorderBufferDiskChange