Re: v12.0: ERROR: could not find pathkey item to sort
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2019-10-11T14:48:37Z
Lists: pgsql-hackers
Justin Pryzby <pryzby@telsasoft.com> writes: > I've reduced the failing query as much as possible to this: > -- This is necessary to fail: > SET enable_nestloop=off; > SELECT * FROM > (SELECT start_time, t1.site_id > FROM pgw_kpi_view t1 > -- Apparently the where clause is necessary to fail... > WHERE (start_time>='2019-10-10' AND start_time<'2019-10-11') > -- The group by MAY be necessary to fail... > GROUP BY 1,2 > ) AS data > JOIN sites ON ( sites.site_location='' OR sites.site_office=data.site_id) > The view is actually a join of two relkind=p partitioned tables (which I > will acknowledge probably performs poorly). Could you provide a self-contained test case please? regards, tom lane
Commits
-
Generate EquivalenceClass members for partitionwise child join rels.
- a9db37a180e5 12.1 landed
- 529ebb20aaa5 13.0 landed
-
Suppress Append and MergeAppend plan nodes that have a single child.
- 8edd0e79460b 12.0 cited