aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xloginsert.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-03-10 12:54:54 -0800
committerAndres Freund <andres@anarazel.de>2022-03-10 12:57:05 -0800
commit352d297dc74feb0bf0dcb255cc0dfaaed2b96c1e (patch)
treed8ac19ac9cd2a768605919bec4df52c8b133321c /src/backend/access/transam/xloginsert.c
parentadb5c28adc59415b54c087507dd84c71368c289c (diff)
downloadpostgresql-352d297dc74feb0bf0dcb255cc0dfaaed2b96c1e.tar.gz
postgresql-352d297dc74feb0bf0dcb255cc0dfaaed2b96c1e.zip
dshash: Add sequential scan support.
Add ability to scan all entries sequentially to dshash. The interface is similar but a bit different both from that of dynahash and simple dshash search functions. The most significant differences is that dshash's interfac always needs a call to dshash_seq_term when scan ends. Another is locking. Dshash holds partition lock when returning an entry, dshash_seq_next() also holds lock when returning an entry but callers shouldn't release it, since the lock is essential to continue a scan. The seqscan interface allows entry deletion while a scan is in progress using dshash_delete_current(). Reviewed-By: Andres Freund <andres@anarazel.de> Author: Kyotaro Horiguchi <horikyoga.ntt@gmail.com>
Diffstat (limited to 'src/backend/access/transam/xloginsert.c')
0 files changed, 0 insertions, 0 deletions