pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix CLUSTER on expression indexes. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix CLUSTER on expression indexes. @ 2019-10-15 17:46 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 2+ messages in thread From: Andres Freund @ 2019-10-15 17:46 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix CLUSTER on expression indexes. Since the introduction of different slot types, in 1a0586de3657, we create a virtual slot in tuplesort_begin_cluster(). While that looks right, it unfortunately doesn't actually work, as ExecStoreHeapTuple() is used to store tuples in the slot. Unfortunately no regression tests for CLUSTER on expression indexes existed so far. Fix the slot type, and add bare bones tests for CLUSTER on expression indexes. Reported-By: Justin Pryzby Author: Andres Freund Discussion: https://postgr.es/m/20191011210320.GS10470@telsasoft.com Backpatch: 12, like 1a0586de3657 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/cef82eda1464193ab84a58610a388572d456c8c5 Modified Files -------------- src/backend/utils/sort/tuplesort.c | 2 +- src/test/regress/expected/cluster.out | 107 ++++++++++++++++++++++++++++++++++ src/test/regress/sql/cluster.sql | 37 ++++++++++++ 3 files changed, 145 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix CLUSTER on expression indexes. @ 2019-10-15 17:46 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 2+ messages in thread From: Andres Freund @ 2019-10-15 17:46 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix CLUSTER on expression indexes. Since the introduction of different slot types, in 1a0586de3657, we create a virtual slot in tuplesort_begin_cluster(). While that looks right, it unfortunately doesn't actually work, as ExecStoreHeapTuple() is used to store tuples in the slot. Unfortunately no regression tests for CLUSTER on expression indexes existed so far. Fix the slot type, and add bare bones tests for CLUSTER on expression indexes. Reported-By: Justin Pryzby Author: Andres Freund Discussion: https://postgr.es/m/20191011210320.GS10470@telsasoft.com Backpatch: 12, like 1a0586de3657 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/6d3fe6b6bf05777cb7152b462594a1993af15857 Modified Files -------------- src/backend/utils/sort/tuplesort.c | 2 +- src/test/regress/expected/cluster.out | 107 ++++++++++++++++++++++++++++++++++ src/test/regress/sql/cluster.sql | 37 ++++++++++++ 3 files changed, 145 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-10-15 17:46 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-10-15 17:46 pgsql: Fix CLUSTER on expression indexes. Andres Freund <andres@anarazel.de> 2019-10-15 17:46 pgsql: Fix CLUSTER on expression indexes. Andres Freund <andres@anarazel.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox