postgresql/src
Alexander Korotkov e57519a463 Add missing inequality searches to rbtree
PostgreSQL contains the implementation of the red-black tree.  The red-black
tree is the ordered data structure, and one of its advantages is the ability
to do inequality searches.  This commit adds rbt_find_less() and
rbt_find_great() functions implementing these searches.  While these searches
aren't yet used in the core code, they might be useful for extensions.

Discussion: https://postgr.es/m/CAGRrpzYE8-7GCoaPjOiL9T_HY605MRax-2jgTtLq236uksZ1Sw%40mail.gmail.com
Author: Steve Chavez, Alexander Korotkov
Reviewed-by: Alexander Korotkov
2022-07-08 22:00:03 +03:00
..
backend Add missing inequality searches to rbtree 2022-07-08 22:00:03 +03:00
bin Preserve relfilenode of pg_largeobject and its index across pg_upgrade. 2022-07-08 10:20:27 -04:00
common Simplify json lexing state 2022-07-08 14:53:20 +07:00
fe_utils Remove redundant null pointer checks before PQclear and PQconninfoFree 2022-07-03 20:11:05 +02:00
include Add missing inequality searches to rbtree 2022-07-08 22:00:03 +03:00
interfaces Reorder ecpg_config.h.in alphabetically 2022-07-06 07:16:46 +02:00
makefiles Remove HP-UX port. 2022-07-08 14:05:05 +12:00
pl Remove HP-UX port. 2022-07-08 14:05:05 +12:00
port Remove HP-UX port. 2022-07-08 14:05:05 +12:00
template Remove HP-UX port. 2022-07-08 14:05:05 +12:00
test Add missing inequality searches to rbtree 2022-07-08 22:00:03 +03:00
timezone Update time zone data files to tzdata release 2022a. 2022-05-05 14:54:53 -04:00
tools Remove HP/Intel Itanium support. 2022-07-08 14:14:57 +12:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Remove LLVM_CONFIG from Makefile.global.in 2022-07-06 08:11:39 -07:00
Makefile.shlib Remove HP-UX port. 2022-07-08 14:05:05 +12:00
nls-global.mk Improve frontend error logging style. 2022-04-08 14:55:14 -04:00