postgresql/src/backend/utils/adt
Amit Kapila a169155453 Fix the MSVC build for versions 2015 and later.
Visual Studio 2015 and later versions should still be able to do the same
as Visual Studio 2012, but the declaration of locale_name is missing in
_locale_t, causing the code compilation to fail, hence this falls back
instead on to enumerating all system locales by using EnumSystemLocalesEx
to find the required locale name.  If the input argument is in Unix-style
then we can get ISO Locale name directly by using GetLocaleInfoEx() with
LCType as LOCALE_SNAME.

In passing, change the documentation references of the now obsolete links.

Note that this problem occurs only with NLS enabled builds.

Author: Juan José Santamaría Flecha, Davinder Singh and Amit Kapila
Reviewed-by: Ranier Vilela and Amit Kapila
Backpatch-through: 9.5
Discussion: https://postgr.es/m/CAHzhFSFoJEWezR96um4-rg5W6m2Rj9Ud2CNZvV4NWc9tXV7aXQ@mail.gmail.com
2020-05-14 09:24:33 +05:30
..
.gitignore Revert "Add gitignore entries for jsonpath_gram.h" 2019-03-23 00:19:34 +01:00
Makefile Introduce xid8-based functions to replace txid_XXX. 2020-04-07 12:04:32 +12:00
acl.c Remove ACLDEBUG #define and associated code. 2020-04-23 15:38:04 -04:00
amutils.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
array_expanded.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
array_selfuncs.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
array_typanalyze.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
array_userfuncs.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
arrayfuncs.c Fix minor violations of FunctionCallInvoke usage protocol. 2020-04-21 14:23:53 -04:00
arrayutils.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
ascii.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
bool.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
cash.c Fix loss of fractional digits for large values in cash_numeric(). 2019-07-26 11:59:00 -04:00
char.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
cryptohashes.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
date.c Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
datetime.c Avoid holding a directory FD open across assorted SRF calls. 2020-03-16 21:05:52 -04:00
datum.c Add equalimage B-Tree support functions. 2020-02-26 11:28:25 -08:00
dbsize.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
domains.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
encode.c Adjust bytea get_bit/set_bit to use int8 not int4 for bit numbering. 2020-04-07 15:57:58 -04:00
enum.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
expandeddatum.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
expandedrecord.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
float.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
format_type.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
formatting.c Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
genfile.c Teach pg_ls_dir_files() to ignore ENOENT failures from stat(). 2020-03-31 12:57:55 -04:00
geo_ops.c Fix circle_in to accept "(x,y),r" as it's advertised to do. 2020-04-07 20:50:28 -04:00
geo_selfuncs.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geo_spgist.c Update copyrights for 2020 2020-01-01 12:21:45 -05: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 Add functions gcd() and lcm() for integer and numeric types. 2020-01-25 14:00:59 +00:00
int8.c Optimizations for integer to decimal output. 2020-02-01 21:57:14 +00:00
json.c Introduce "anycompatible" family of polymorphic types. 2020-03-19 11:43:11 -04:00
jsonb.c Introduce "anycompatible" family of polymorphic types. 2020-03-19 11:43:11 -04:00
jsonb_gin.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
jsonb_op.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
jsonb_util.c Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
jsonfuncs.c Fix assorted typos 2020-03-31 16:00:06 +02:00
jsonpath.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jsonpath_exec.c Make SQL/JSON error code names match SQL standard 2020-04-30 09:34:54 +02:00
jsonpath_gram.y Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jsonpath_scan.l Allow Unicode escapes in any server encoding, not only UTF-8. 2020-03-06 14:17:43 -05:00
levenshtein.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
like.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
like_match.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
like_support.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
lockfuncs.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
mac.c Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
mac8.c Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
misc.c Revert 0f5ca02f53 2020-04-08 11:37:27 +03:00
name.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
network.c Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
network_gist.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
network_selfuncs.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
network_spgist.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
numeric.c Improve the performance and accuracy of numeric sqrt() and ln(). 2020-03-28 14:37:53 +00:00
numutils.c Optimizations for integer to decimal output. 2020-02-01 21:57:14 +00:00
oid.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
oracle_compat.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
orderedsetaggs.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
partitionfuncs.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_locale.c Fix the MSVC build for versions 2015 and later. 2020-05-14 09:24:33 +05:30
pg_lsn.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_upgrade_support.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
pgstatfuncs.c Improve management of SLRU statistics collection. 2020-05-13 13:08:23 -04:00
pseudotypes.c Introduce "anycompatible" family of polymorphic types. 2020-03-19 11:43:11 -04:00
quote.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
rangetypes.c Remove RangeIOData->typiofunc 2020-03-05 11:35:02 -03:00
rangetypes_gist.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
rangetypes_selfuncs.c Fix edge-case crashes and misestimation in range containment selectivity. 2020-01-12 14:36:59 -05:00
rangetypes_spgist.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
rangetypes_typanalyze.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
regexp.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
regproc.c Implement type regcollation 2020-03-18 21:21:00 +01:00
ri_triggers.c Add object names to partition integrity violations. 2020-03-23 08:09:15 +05:30
rowtypes.c Fix minor violations of FunctionCallInvoke usage protocol. 2020-04-21 14:23:53 -04:00
ruleutils.c Support FETCH FIRST WITH TIES 2020-04-07 16:22:13 -04:00
selfuncs.c Allow matchingsel() to be used with operators that might return NULL. 2020-04-21 12:56:55 -04:00
tid.c Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
timestamp.c Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
trigfuncs.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tsginidx.c Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
tsgistidx.c Implement operator class parameters 2020-03-30 19:17:23 +03:00
tsquery.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tsquery_cleanup.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tsquery_gist.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tsquery_op.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
tsquery_rewrite.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tsquery_util.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tsrank.c Fix typo in comment 2020-05-03 12:19:31 +03:00
tsvector.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tsvector_op.c Fix YA text phrase search bug. 2020-05-07 15:59:51 -04:00
tsvector_parser.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
uuid.c Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
varbit.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
varchar.c Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
varlena.c Adjust bytea get_bit/set_bit to use int8 not int4 for bit numbering. 2020-04-07 15:57:58 -04:00
version.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
windowfuncs.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
xid.c Add SQL type xid8 to expose FullTransactionId to users. 2020-04-07 12:03:59 +12:00
xid8funcs.c Introduce xid8-based functions to replace txid_XXX. 2020-04-07 12:04:32 +12:00
xml.c Allow Unicode escapes in any server encoding, not only UTF-8. 2020-03-06 14:17:43 -05:00