postgresql/src/backend/utils/adt
Nathan Bossart 3b42bdb471 Use new overflow-safe integer comparison functions.
Commit 6b80394781 introduced integer comparison functions designed
to be as efficient as possible while avoiding overflow.  This
commit makes use of these functions in many of the in-tree qsort()
comparators to help ensure transitivity.  Many of these comparator
functions should also see a small performance boost.

Author: Mats Kindahl
Reviewed-by: Andres Freund, Fabrízio de Royes Mello
Discussion: https://postgr.es/m/CA%2B14426g2Wa9QuUpmakwPxXFWG_1FaY0AsApkvcTBy-YfS6uaw%40mail.gmail.com
2024-02-16 14:05:36 -06:00
..
.gitignore Build all Flex files standalone 2022-09-04 12:09:01 +07:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
acl.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
amutils.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
array_expanded.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
array_selfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
array_typanalyze.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
array_userfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
arrayfuncs.c Teach estimate_array_length() to use statistics where available. 2024-01-04 18:36:19 -05:00
arraysubs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
arrayutils.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
ascii.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
bool.c Update copyright for 2024 2024-01-03 20:49:05 -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 Update copyright for 2024 2024-01-03 20:49:05 -05:00
cryptohashfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
date.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
datetime.c Support TZ and OF format codes in to_timestamp(). 2024-01-25 17:47:08 -05:00
datum.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
dbsize.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
domains.c Adjust populate_record_field() to handle errors softly 2024-01-24 15:04:33 +09:00
encode.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
enum.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
expandeddatum.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
expandedrecord.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
float.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
format_type.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
formatting.c Support TZ and OF format codes in to_timestamp(). 2024-01-25 17:47:08 -05:00
genfile.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
geo_ops.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
geo_selfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
geo_spgist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
hbafuncs.c Update copyright for 2024 2024-01-03 20:49:05 -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 Update copyright for 2024 2024-01-03 20:49:05 -05:00
int8.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
json.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonb.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonb_gin.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonb_op.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonb_util.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonbsubs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonfuncs.c Silence compiler warning introduced in 1edb3b491b 2024-01-25 17:12:18 +09:00
jsonpath.c Implement various jsonpath methods 2024-01-25 10:15:43 -05:00
jsonpath_exec.c Add missing check_stack_depth() to some recursive functions 2024-02-16 16:02:00 +02:00
jsonpath_gram.y Implement various jsonpath methods 2024-01-25 10:15:43 -05:00
jsonpath_internal.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonpath_scan.l Implement various jsonpath methods 2024-01-25 10:15:43 -05:00
levenshtein.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
like.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
like_match.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
like_support.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
lockfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
mac.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
mac8.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
mcxtfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
misc.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
multirangetypes.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
multirangetypes_selfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
name.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
network.c Work around spurious compiler warning in inet operators 2023-03-16 14:48:45 -07:00
network_gist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
network_selfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
network_spgist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
numeric.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
numutils.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
oid.c Use new overflow-safe integer comparison functions. 2024-02-16 14:05:36 -06:00
oracle_compat.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
orderedsetaggs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
partitionfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_locale.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_lsn.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_upgrade_support.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pgstatfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pseudotypes.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
quote.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
rangetypes.c Add planner support functions for range operators <@ and @>. 2024-01-20 13:57:54 -05:00
rangetypes_gist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
rangetypes_selfuncs.c Add planner support functions for range operators <@ and @>. 2024-01-20 13:57:54 -05:00
rangetypes_spgist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
rangetypes_typanalyze.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
regexp.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
regproc.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
ri_triggers.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
rowtypes.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
ruleutils.c Remove race condition in pg_get_expr(). 2024-02-09 12:29:41 -05:00
selfuncs.c Allow examine_simple_variable() to work on INSERT RETURNING Vars. 2024-01-08 11:48:44 -05:00
tid.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
timestamp.c Catch overflow when rounding intervals in AdjustIntervalForTypmod. 2024-02-13 15:58:40 -05:00
trigfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsginidx.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsgistidx.c Use new overflow-safe integer comparison functions. 2024-02-16 14:05:36 -06:00
tsquery.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsquery_cleanup.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsquery_gist.c Use new overflow-safe integer comparison functions. 2024-02-16 14:05:36 -06:00
tsquery_op.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsquery_rewrite.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsquery_util.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsrank.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsvector.c Use new overflow-safe integer comparison functions. 2024-02-16 14:05:36 -06:00
tsvector_op.c Use new overflow-safe integer comparison functions. 2024-02-16 14:05:36 -06:00
tsvector_parser.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
uuid.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
varbit.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
varchar.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
varlena.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
version.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
windowfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
xid.c Use new overflow-safe integer comparison functions. 2024-02-16 14:05:36 -06:00
xid8funcs.c Fix wrong logic in TransactionIdInRecentPast() 2024-02-08 12:45:26 +02:00
xml.c Fix incompatibilities with libxml2 >= 2.12.0. 2024-01-29 12:06:13 -05:00