postgresql/src/include/lib
Alexander Korotkov 8af3ae0d4b Add pairingheap_initialize() for shared memory usage
The existing pairingheap_allocate() uses palloc(), which allocates
from process-local memory. For shared memory use cases, the pairingheap
structure must be allocated via ShmemAlloc() or embedded in a shared
memory struct. Add pairingheap_initialize() to initialize an already-
allocated pairingheap structure in-place, enabling shared memory usage.

Discussion: https://www.postgresql.org/message-id/flat/CAPpHfdsjtZLVzxjGT8rJHCYbM0D5dwkO+BBjcirozJ6nYbOW8Q@mail.gmail.com
Discussion: https://www.postgresql.org/message-id/flat/CABPTF7UNft368x-RgOXkfj475OwEbp%2BVVO-wEXz7StgjD_%3D6sw%40mail.gmail.com
Author: Kartyshov Ivan <i.kartyshov@postgrespro.ru>
Author: Alexander Korotkov <aekorotkov@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Alexander Lakhin <exclusion@gmail.com>
Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Reviewed-by: Euler Taveira <euler@eulerto.com>
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Xuneng Zhou <xunengzhou@gmail.com>
2025-11-05 11:44:13 +02:00
..
binaryheap.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
bipartite_match.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
bloomfilter.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
dshash.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
hyperloglog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
ilist.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
integerset.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
knapsack.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pairingheap.h Add pairingheap_initialize() for shared memory usage 2025-11-05 11:44:13 +02:00
qunique.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
radixtree.h Remove PointerIsValid() 2025-09-24 15:17:20 +02:00
rbtree.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
simplehash.h Improve planner's estimates of tuple hash table sizes. 2025-11-02 16:57:26 -05:00
sort_template.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
stringinfo.h Add new StringInfo APIs to allow callers to specify the buffer size. 2025-01-11 08:23:46 +09:00