Jeff Davis
72fe6d24a3
Make collation not depend on setlocale().
...
Now that the result of pg_newlocale_from_collation() is always
non-NULL, then we can move the collate_is_c and ctype_is_c flags into
pg_locale_t. That simplifies the logic in lc_collate_is_c() and
lc_ctype_is_c(), removing the dependence on setlocale().
This commit also eliminates the multi-stage initialization of the
collation cache.
As long as we have catalog access, then it's now safe to call
pg_newlocale_from_collation() without checking lc_collate_is_c()
first.
Discussion: https://postgr.es/m/cfd9eb85-c52a-4ec9-a90e-a5e4de56e57d@eisentraut.org
Reviewed-by: Peter Eisentraut, Andreas Karlsson
2024-07-30 00:58:06 -07:00
..
2022-10-05 10:44:38 -07:00
2024-07-11 11:50:50 -04:00
2022-02-08 15:30:38 -05:00
2023-10-20 12:28:46 -04:00
2024-07-24 12:38:18 +02:00
2024-07-23 21:59:02 -05:00
2024-04-06 21:56:23 -05:00
2024-01-31 15:02:28 +09:00
2023-02-28 08:04:13 +09:00
2021-03-26 13:35:32 +01:00
2024-01-02 12:05:41 -05:00
2024-04-19 16:08:34 +02:00
2024-04-06 11:47:10 -04:00
2021-04-02 11:01:49 +02:00
2023-02-28 08:04:13 +09:00
2024-03-13 14:49:26 -05:00
2024-05-21 12:44:51 -04:00
2023-06-07 16:57:06 +02:00
2024-03-13 23:33:44 -07:00
2024-07-30 00:58:06 -07:00
2023-12-29 11:26:10 -08:00
2021-03-25 16:08:03 +09:00
2024-05-03 11:10:40 +02:00
2024-07-12 13:44:19 +02:00
2022-02-08 15:30:38 -05:00
2024-04-01 15:25:25 +09:00
2024-04-18 21:28:07 +02:00
2021-02-26 09:11:15 +01:00
2022-04-04 20:00:33 +02:00
2024-04-02 13:10:16 +02:00
2022-10-17 14:02:05 -04:00
2022-02-08 15:40:08 -05:00
2022-08-10 13:37:25 -04:00
2021-11-17 16:54:12 -05:00
2024-04-10 02:28:09 +03:00
2022-02-08 15:30:38 -05:00
2023-10-20 12:28:46 -04:00
2024-06-06 15:16:56 -04:00
2024-01-29 08:05:59 +09:00
2023-04-28 19:29:12 +09:00
2024-05-22 17:54:17 -04:00
2023-08-25 13:31:24 +02:00
2022-12-09 10:08:44 -05:00
2022-12-01 11:38:14 -05:00
2024-06-27 19:21:05 -07:00
2023-02-28 08:04:13 +09:00
2024-07-28 22:22:52 +12:00
2024-03-13 14:49:26 -05:00
2024-04-15 08:34:45 +02:00
2024-03-24 14:30:29 -04:00
2024-05-06 14:36:36 +03:00
2022-02-08 15:30:38 -05:00
2024-01-17 23:16:53 +02:00
2023-12-07 08:31:02 +09:00
2024-04-03 17:41:57 -04:00
2023-05-17 10:19:17 +09:00
2023-11-16 10:05:14 -05:00
2023-02-28 08:04:13 +09:00
2023-03-14 09:17:36 +00:00
2024-03-26 15:28:31 -04:00
2024-04-18 21:28:07 +02:00
2024-01-04 16:28:54 +01:00
2023-02-28 08:04:13 +09:00
2022-09-25 13:10:17 -04:00
2022-09-25 13:10:17 -04:00
2022-05-12 11:31:46 -04:00
2023-02-08 16:56:21 +09:00
2024-01-15 09:30:16 +09:00
2023-12-01 10:22:13 +05:30
2023-09-06 10:18:30 +02:00
2024-05-22 18:22:58 -04:00
2024-05-13 10:32:33 +02:00
2023-07-04 23:08:52 +12:00
2024-05-15 14:31:47 +09:00
2024-05-13 11:31:09 +02:00
2022-02-08 15:30:38 -05:00
2023-02-28 08:04:13 +09:00
2024-05-13 11:31:09 +02:00
2024-06-11 17:57:46 -04:00
2024-03-14 14:57:16 -04:00
2023-02-28 08:04:13 +09:00
2023-02-28 08:04:13 +09:00
2023-11-09 09:50:23 +00:00
2024-02-13 15:58:40 -05:00
2023-06-20 17:47:53 -04:00
2024-07-08 10:11:46 +09:00
2023-02-28 08:04:13 +09:00
2023-02-28 08:04:13 +09:00
2024-07-19 14:17:56 +09:00
2024-01-24 15:04:33 +09:00
2024-01-25 10:15:43 -05:00
2023-12-15 13:55:05 -05:00
2021-10-01 18:29:18 -03:00
2023-02-28 08:04:13 +09:00
2022-03-22 10:28:10 +00:00
2023-02-28 08:04:13 +09:00
2023-02-28 08:04:13 +09:00
2023-02-28 08:04:13 +09:00
2024-03-04 17:31:38 -08:00
2022-10-13 12:02:31 +02:00
2024-07-15 10:26:33 +09:00
2024-06-27 19:21:05 -07:00
2024-07-09 12:46:48 +12:00
2024-06-14 15:29:09 -04:00
2022-02-08 15:30:38 -05:00
2024-07-19 11:52:32 -05:00
2024-02-14 11:30:39 -05:00
2022-08-25 10:31:20 +02:00
2024-03-04 17:31:38 -08:00
2022-10-20 10:10:17 +01:00
2024-07-08 17:48:45 +01:00
2024-07-02 09:29:26 +02:00
2022-11-18 16:00:52 +01:00
2023-02-28 08:04:13 +09:00
2023-11-22 09:32:06 +09:00
2022-09-05 00:09:17 +02:00
2024-07-30 15:51:54 +09:00
2024-07-15 14:11:13 +09:00
2024-07-05 14:05:08 +12:00
2024-07-15 14:11:13 +09:00
2023-11-17 17:58:39 +01:00
2023-02-28 08:04:13 +09:00
2023-02-28 08:04:13 +09:00
2024-04-10 15:45:58 -04:00
2023-02-28 08:04:13 +09:00
2023-02-28 08:04:13 +09:00
2021-07-27 15:01:49 -04:00
2022-04-16 16:04:50 -04:00
2024-04-12 20:07:53 +12:00
2024-07-02 10:43:12 +02:00
2024-04-29 21:10:41 +09:00
2024-07-10 10:14:37 +09:00
2024-04-06 21:49:24 -04:00
2024-04-18 21:28:07 +02:00
2024-03-27 10:12:39 +00:00
2024-04-15 12:56:56 -04:00
2024-01-20 13:57:54 -05:00
2021-08-24 16:37:26 -04:00
2024-03-20 17:11:28 -04:00
2023-12-08 11:58:58 +01:00
2024-05-13 11:31:09 +02:00
2024-05-07 13:35:10 -04:00
2023-09-15 17:01:52 -04:00
2024-03-30 10:00:26 +00:00
2024-02-28 15:17:23 +04:00
2022-10-28 23:04:38 +13:00
2024-01-31 17:22:02 +13:00
2022-02-08 15:30:38 -05:00
2024-07-22 11:29:21 +09:00
2022-05-09 14:15:37 -04:00
2022-04-07 16:18:00 +02:00
2022-09-25 13:10:17 -04:00
2024-07-30 10:34:17 +09:00
2024-07-30 10:34:17 +09:00
2024-06-28 21:48:44 +09:00
2024-05-06 09:00:00 -05:00
2024-02-28 09:39:52 +01:00
2023-08-23 07:49:03 -07:00
2024-07-24 10:13:36 +05:30
2024-03-29 10:40:31 -04:00
2024-07-25 15:03:28 +12:00
2021-09-10 13:18:32 -04:00
2023-02-11 10:03:04 -08:00
2023-10-16 14:06:14 -04:00
2024-02-28 14:34:19 -05:00
2022-02-08 15:30:38 -05:00
2023-02-28 08:04:13 +09:00
2021-02-27 22:59:36 +13:00
2023-02-28 08:04:13 +09:00
2024-02-28 14:00:30 -05:00
2024-02-28 14:00:30 -05:00
2023-10-17 13:10:35 -04:00
2023-09-21 23:11:30 -04:00
2024-06-20 14:21:36 -04:00
2024-04-18 21:28:07 +02:00
2024-06-13 20:35:02 -04:00
2023-02-28 08:04:13 +09:00
2024-04-16 16:21:31 +12:00
2023-11-12 10:06:51 +09:00
2024-07-26 12:39:45 -04:00
2023-11-01 22:47:06 -07:00
2024-05-21 12:54:09 -04:00
2024-07-20 13:40:15 -04:00
2024-01-20 17:54:14 -05:00
2024-03-19 09:32:04 +01:00
2021-11-02 12:06:17 -07:00
2024-07-13 08:09:33 -07:00
2023-02-28 08:04:13 +09:00
2024-05-05 12:54:46 +12:00
2024-07-14 13:49:46 -04:00
2021-03-17 15:04:17 +13:00
2023-02-28 08:04:13 +09:00
2024-07-09 16:31:24 -04:00
2022-03-18 16:01:42 -04:00