postgresql/src/backend/access
Peter Eisentraut b99ccd2cb2 Call pg_newlocale_from_collation() also with default collation
Previously, callers of pg_newlocale_from_collation() did not call it
if the collation was DEFAULT_COLLATION_OID and instead proceeded with
a pg_locale_t of 0.  Instead, now we call it anyway and have it return
0 if the default collation was passed.  It already did this, so we
just have to adjust the callers.  This simplifies all the call sites
and also makes future enhancements easier.

After discussion and testing, the previous comment in pg_locale.c
about avoiding this for performance reasons may have been mistaken
since it was testing a very different patch version way back when.

Reviewed-by: Julien Rouhaud <rjuju123@gmail.com>
Discussion: https://www.postgresql.org/message-id/ed3baa81-7fac-7788-cc12-41e3f7917e34@enterprisedb.com
2022-01-20 09:50:18 +01:00
..
brin Rename functions to avoid future conflicts 2022-01-10 09:37:43 +01:00
common Update copyright for 2022 2022-01-07 19:04:57 -05:00
gin Update copyright for 2022 2022-01-07 19:04:57 -05:00
gist Update copyright for 2022 2022-01-07 19:04:57 -05:00
hash Call pg_newlocale_from_collation() also with default collation 2022-01-20 09:50:18 +01:00
heap heap pruning: Only call BufferGetBlockNumber() once. 2022-01-17 15:35:11 -08:00
index Update copyright for 2022 2022-01-07 19:04:57 -05:00
nbtree Update copyright for 2022 2022-01-07 19:04:57 -05:00
rmgrdesc Update copyright for 2022 2022-01-07 19:04:57 -05:00
spgist Update copyright for 2022 2022-01-07 19:04:57 -05:00
table Update copyright for 2022 2022-01-07 19:04:57 -05:00
tablesample Update copyright for 2022 2022-01-07 19:04:57 -05:00
transam Make logical decoding a part of the rmgr. 2022-01-19 14:58:49 -08:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00