postgresql/src/backend/utils/adt
Jeff Davis 869650fa86 Support language tags in older ICU versions (53 and earlier).
By calling uloc_canonicalize() before parsing the attributes, the
existing locale attribute parsing logic works on language tags as
well.

Fix a small memory leak, too.

Discussion: http://postgr.es/m/60da0cecfb512a78b8666b31631a636215d8ce73.camel@j-davis.com
Reviewed-by: Peter Eisentraut
2023-03-21 16:12:37 -07:00
..
.gitignore Build all Flex files standalone 2022-09-04 12:09:01 +07:00
Makefile Build all Flex files standalone 2022-09-04 12:09:01 +07:00
acl.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
amutils.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
array_expanded.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
array_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
array_typanalyze.c Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
array_userfuncs.c Change argument type of pq_sendbytes from char * to void * 2023-02-14 13:32:19 +01:00
arrayfuncs.c Allow parallel aggregate on string_agg and array_agg 2023-01-23 17:35:01 +13:00
arraysubs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
arrayutils.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
ascii.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
bool.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
cash.c Convert a few more datatype input functions to report errors softly. 2022-12-14 18:03:11 -05:00
char.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
cryptohashfuncs.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
date.c Refactor datetime functions' timezone lookup code to reduce duplication. 2023-03-17 17:47:19 -04:00
datetime.c Refactor datetime functions' timezone lookup code to reduce duplication. 2023-03-17 17:47:19 -04:00
datum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
dbsize.c Add support for unit "B" to pg_size_bytes() 2023-03-07 20:31:16 +01:00
domains.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
encode.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
enum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
expandeddatum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
expandedrecord.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
float.c Add support for the error functions erf() and erfc(). 2023-03-14 09:17:36 +00:00
format_type.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
formatting.c Fix corner case bug in numeric to_char() some more. 2023-03-14 19:17:31 -04:00
genfile.c Use "data directory" not "current directory" in error messages. 2023-03-16 12:04:08 -04:00
geo_ops.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
geo_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
geo_spgist.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
hbafuncs.c Store IdentLine->pg_user as an AuthToken 2023-01-16 13:58:07 +09:00
inet_cidr_ntop.c Avoid conflicts with library versions of inet_net_ntop() and friends. 2019-08-18 19:27:23 -04:00
inet_net_pton.c Avoid conflicts with library versions of inet_net_ntop() and friends. 2019-08-18 19:27:23 -04:00
int.c Remove arbitrary FUNC_MAX_ARGS limit in int2vectorin and oidvectorin. 2023-01-15 17:32:09 -05:00
int8.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
json.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonb.c Use appendStringInfoSpaces in more places 2023-01-20 13:07:24 +13:00
jsonb_gin.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonb_op.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonb_util.c Fix incorrect format placeholders 2023-03-03 07:01:18 +01:00
jsonbsubs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonfuncs.c Fix JSON error reporting for many cases of erroneous string values. 2023-03-13 15:19:00 -04:00
jsonpath.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonpath_exec.c Fix jsonpath existense checking of missing variables 2023-01-12 18:16:34 +03:00
jsonpath_gram.y Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonpath_internal.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonpath_scan.l SQL JSON path enhanced numeric literals 2023-03-05 15:19:58 +01:00
levenshtein.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
like.c Refactor to introduce pg_locale_deterministic(). 2023-02-23 11:17:41 -08:00
like_match.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
like_support.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
lockfuncs.c Fix the display of lock information for specktoken. 2023-01-10 08:53:47 +05:30
mac.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
mac8.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
mcxtfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
misc.c Rework pg_input_error_message(), now renamed pg_input_error_info() 2023-02-28 08:04:13 +09:00
multirangetypes.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
multirangetypes_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
name.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
network.c Work around spurious compiler warning in inet operators 2023-03-16 14:48:45 -07:00
network_gist.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
network_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
network_spgist.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
numeric.c Allow underscores in integer and numeric constants. 2023-02-04 09:48:51 +00:00
numutils.c Allow underscores in integer and numeric constants. 2023-02-04 09:48:51 +00:00
oid.c Remove arbitrary FUNC_MAX_ARGS limit in int2vectorin and oidvectorin. 2023-01-15 17:32:09 -05:00
oracle_compat.c Avoid fetching one past the end of translate()'s "to" parameter. 2023-03-01 11:30:31 -05:00
orderedsetaggs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
partitionfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_locale.c Support language tags in older ICU versions (53 and earlier). 2023-03-21 16:12:37 -07:00
pg_lsn.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_upgrade_support.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgstatfuncs.c Remove PgStat_BackendFunctionEntry 2023-03-16 14:22:34 +09:00
pseudotypes.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
quote.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
rangetypes.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
rangetypes_gist.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
rangetypes_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
rangetypes_spgist.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
rangetypes_typanalyze.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
regexp.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
regproc.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
ri_triggers.c Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
rowtypes.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
ruleutils.c Fix incorrect comment in pg_get_partkeydef() 2023-03-07 14:33:28 +13:00
selfuncs.c Make Vars be outer-join-aware. 2023-01-30 13:16:20 -05:00
tid.c Consolidate ItemPointer to Datum conversion functions 2023-02-13 09:57:15 +01:00
timestamp.c Add functions to do timestamptz arithmetic in a non-default timezone. 2023-03-18 14:12:16 -04:00
trigfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
tsginidx.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
tsgistidx.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsquery.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsquery_cleanup.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsquery_gist.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsquery_op.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
tsquery_rewrite.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
tsquery_util.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsrank.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsvector.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsvector_op.c Fix ts_headline() to handle ORs and phrase queries more honestly. 2023-01-19 16:21:44 -05:00
tsvector_parser.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
uuid.c Change argument type of pq_sendbytes from char * to void * 2023-02-14 13:32:19 +01:00
varbit.c Change argument type of pq_sendbytes from char * to void * 2023-02-14 13:32:19 +01:00
varchar.c Remove unnecessary #ifdef USE_ICU and branch. 2023-02-23 11:20:00 -08:00
varlena.c Refactor to introduce pg_locale_deterministic(). 2023-02-23 11:17:41 -08:00
version.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
windowfuncs.c Teach planner about more monotonic window functions 2023-01-27 16:08:41 +13:00
xid.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
xid8funcs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
xml.c Support [NO] INDENT option in XMLSERIALIZE(). 2023-03-15 16:59:09 -04:00