postgresql/src/backend
Peter Geoghegan 62620b6aad Clarify nbtree parallel scan _bt_endpoint contract.
_bt_endpoint is a helper function for _bt_first that's called whenever
no useful insertion scan key can be used, and we need to lock and read
either the leftmost or rightmost leaf page in the index.  Simplify and
document its preconditions, relieving its _bt_first caller from having
to end the parallel scan when it returns false.

Also stop unnecessarily invalidating the current scan position in nearby
code in both _bt_first and _bt_endpoint.  This seems to have been
copy-pasted from _bt_readnextpage, where invalidating the scan's current
position really is necessary.

Follow-up to the refactoring work in commit 1bd4bc85.
2024-11-04 09:05:59 -05:00
..
access Clarify nbtree parallel scan _bt_endpoint contract. 2024-11-04 09:05:59 -05:00
archive Apply more quoting to GUC names in messages 2024-09-04 13:50:44 +09:00
backup Remove unused #include's from backend .c files 2024-10-27 08:26:50 +01:00
bootstrap Increase the number of fast-path lock slots 2024-09-21 20:09:35 +02:00
catalog Suppress new "may be used uninitialized" warning. 2024-11-02 19:42:52 -07:00
commands Add a parse location field to struct FunctionParameter. 2024-10-31 16:09:27 -04:00
executor Remove duplicate words in comments 2024-10-31 11:38:03 +01:00
foreign Improve style of two code paths 2024-10-08 10:51:20 +09:00
jit Don't store intermediate hash values in ExprState->resvalue 2024-10-17 14:25:08 +13:00
lib Remove unused #include's from backend .c files 2024-10-27 08:26:50 +01:00
libpq Remove unused #include's from backend .c files 2024-10-27 08:26:50 +01:00
main Remove unused #include's from backend .c files 2024-10-27 08:26:50 +01:00
nodes Add a parse location field to struct FunctionParameter. 2024-10-31 16:09:27 -04:00
optimizer Remove duplicate words in comments 2024-10-31 11:38:03 +01:00
parser Make all ereport() calls within gram.y provide error locations. 2024-10-31 16:09:27 -04:00
partitioning Revert support for ALTER TABLE ... MERGE/SPLIT PARTITION(S) commands 2024-08-24 18:48:48 +03:00
po Translation updates 2024-06-24 13:11:27 +02:00
port Require memory barrier support. 2024-07-30 23:01:55 +12:00
postmaster Rename two functions that wake up other processes 2024-11-01 13:47:24 +02:00
regex Simplify checks for deterministic collations. 2024-09-12 13:35:56 -07:00
replication Use ProcNumbers instead of direct Latch pointers to address other procs 2024-11-01 13:47:20 +02:00
rewrite Fix unnecessary casts of copyObject() result 2024-10-17 08:36:48 +02:00
snowball Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
statistics Add missing CommandCounterIncrement() in stats import functions. 2024-10-29 10:14:23 -07:00
storage Fix comment in LockReleaseAll() on when locallock->nLock can be zero 2024-11-04 15:31:46 +02:00
tcop Remove unused #include's from backend .c files 2024-10-27 08:26:50 +01:00
tsearch Constify fields and parameters in spell.c 2024-08-06 23:04:51 +03:00
utils Fix inplace update buffer self-deadlock. 2024-11-02 09:04:56 -07:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Fix make build on MinGW 2024-06-21 08:17:23 +02:00
meson.build meson: Fix import library name in Windows 2024-06-20 09:08:36 +02:00
nls.mk Add missing gettext triggers 2024-05-14 12:57:22 +02:00