pg16: XX000: could not find pathkey item to sort

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема pg16: XX000: could not find pathkey item to sort
Дата
Msg-id ZQhYYRhUxpW3PSf9@telsasoft.com
обсуждение исходный текст
Ответы Re: pg16: XX000: could not find pathkey item to sort  (Richard Guo <guofenglinux@gmail.com>)
Список pgsql-hackers
This fails since 1349d2790b

commit 1349d2790bf48a4de072931c722f39337e72055e
Author: David Rowley <drowley@postgresql.org>
Date:   Tue Aug 2 23:11:45 2022 +1200

    Improve performance of ORDER BY / DISTINCT aggregates

ts=# CREATE TABLE t (a int, b text) PARTITION BY RANGE (a);
ts=# CREATE TABLE td PARTITION OF t DEFAULT;
ts=# INSERT INTO t SELECT 1 AS a, '' AS b;
ts=# SET enable_partitionwise_aggregate=on;
ts=# explain SELECT a, COUNT(DISTINCT b) FROM t GROUP BY a;
ERROR:  XX000: could not find pathkey item to sort
LOCATION:  prepare_sort_from_pathkeys, createplan.c:6235

-- 
Justin



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Sync scan & regression tests
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: psql help message contains excessive indentations