pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Enable hash partitioning of text arrays 3+ messages / 1 participants [nested] [flat]
* pgsql: Enable hash partitioning of text arrays @ 2020-11-04 11:50 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 3+ messages in thread From: Peter Eisentraut @ 2020-11-04 11:50 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Enable hash partitioning of text arrays hash_array_extended() needs to pass PG_GET_COLLATION() to the hash function of the element type. Otherwise, the hash function of a collation-aware data type such as text will error out, since the introduction of nondeterministic collation made hash functions require a collation, too. The consequence of this is that before this change, hash partitioning using an array over text in the partition key would not work. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/32c1fdae-95c6-5dc6-058a-a90330a3b621%40enterprisedb.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/560564d3addcb6c54e13c1ca8bd11afafbb7ba11 Modified Files -------------- src/backend/utils/adt/arrayfuncs.c | 2 +- src/test/regress/expected/collate.icu.utf8.out | 50 ++++++++++++++++++++++++++ src/test/regress/sql/collate.icu.utf8.sql | 26 ++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Enable hash partitioning of text arrays @ 2020-11-04 11:50 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 3+ messages in thread From: Peter Eisentraut @ 2020-11-04 11:50 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Enable hash partitioning of text arrays hash_array_extended() needs to pass PG_GET_COLLATION() to the hash function of the element type. Otherwise, the hash function of a collation-aware data type such as text will error out, since the introduction of nondeterministic collation made hash functions require a collation, too. The consequence of this is that before this change, hash partitioning using an array over text in the partition key would not work. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/32c1fdae-95c6-5dc6-058a-a90330a3b621%40enterprisedb.com Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/82d4a2a7d63e79f6a6724f366cfaa4beed6b8326 Modified Files -------------- src/backend/utils/adt/arrayfuncs.c | 2 +- src/test/regress/expected/collate.icu.utf8.out | 50 ++++++++++++++++++++++++++ src/test/regress/sql/collate.icu.utf8.sql | 26 ++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Enable hash partitioning of text arrays @ 2020-11-04 11:50 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 3+ messages in thread From: Peter Eisentraut @ 2020-11-04 11:50 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Enable hash partitioning of text arrays hash_array_extended() needs to pass PG_GET_COLLATION() to the hash function of the element type. Otherwise, the hash function of a collation-aware data type such as text will error out, since the introduction of nondeterministic collation made hash functions require a collation, too. The consequence of this is that before this change, hash partitioning using an array over text in the partition key would not work. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/32c1fdae-95c6-5dc6-058a-a90330a3b621%40enterprisedb.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ea9087938131ae0da822ccb96c2d8dc71c177f53 Modified Files -------------- src/backend/utils/adt/arrayfuncs.c | 2 +- src/test/regress/expected/collate.icu.utf8.out | 50 ++++++++++++++++++++++++++ src/test/regress/sql/collate.icu.utf8.sql | 26 ++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-11-04 11:50 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-11-04 11:50 pgsql: Enable hash partitioning of text arrays Peter Eisentraut <peter@eisentraut.org> 2020-11-04 11:50 pgsql: Enable hash partitioning of text arrays Peter Eisentraut <peter@eisentraut.org> 2020-11-04 11:50 pgsql: Enable hash partitioning of text arrays Peter Eisentraut <peter@eisentraut.org>
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