/
githubmirror
/
postgres
ОбзорДокументацияВойти
/
githubmirror
/
postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
postgres/
.../backend/lib/
..
Makefile

Make binaryheap available to frontend code.

3 года назад
README

Correct list of files in src/backend/lib/README

год назад
bipartite_match.c

Update copyright for 2026

7 месяцев назад
bloomfilter.c

Update copyright for 2026

7 месяцев назад
dshash.c

Add dshash_get_dsa_area(), able to retrieve the DSA area of a dshash table

8 дней назад
hyperloglog.c

Fix for loop variables

месяц назад
ilist.c

Update copyright for 2026

7 месяцев назад
integerset.c

Update copyright for 2026

7 месяцев назад
knapsack.c

Remove #include <math.h> where not needed

7 месяцев назад
meson.build

Update copyright for 2026

7 месяцев назад
pairingheap.c

Update copyright for 2026

7 месяцев назад
rbtree.c

Pre-beta mechanical code beautification, step 1: run pgindent.

3 месяца назад
README
This directory contains a general purpose data structures, for use anywhere
in the backend:
 
bipartite_match.c - Hopcroft-Karp maximum cardinality algorithm for bipartite graphs
 
bloomfilter.c - probabilistic, space-efficient set membership testing
 
dshash.c - concurrent hash tables backed by dynamic shared memory areas
 
hyperloglog.c - a streaming cardinality estimator
 
ilist.c - single and double-linked lists
 
integerset.c - a data structure for holding large set of integers
 
knapsack.c - knapsack problem solver
 
pairingheap.c - a pairing heap
 
rbtree.c - a red-black tree
 
 
Aside from the inherent characteristics of the data structures, there are a
few practical differences between the binary heap and the pairing heap. The
binary heap is fully allocated at creation, and cannot be expanded beyond the
allocated size. The pairing heap on the other hand has no inherent maximum
size, but the caller needs to allocate each element being stored in the heap,
while the binary heap works with plain Datums or pointers.
 
The linked-lists in ilist.c can be embedded directly into other structs, as
opposed to the List interface in nodes/pg_list.h.