postgres/src
Andres Freund dd6f2618f6 localbuf: Introduce TerminateLocalBufferIO()
Previously TerminateLocalBufferIO() was open-coded in multiple places, which
doesn't seem like a great idea. While TerminateLocalBufferIO() currently is
rather simple, an upcoming patch requires additional code to be added to
TerminateLocalBufferIO(), making this modification particularly worthwhile.

For some reason FlushRelationBuffers() previously cleared BM_JUST_DIRTIED,
even though that's never set for temporary buffers. This is not carried over
as part of this change.

Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/CAAKRu_b9anbWzEs5AAF9WCvcEVmgz-1AkHSQ-CLLy-p7WHzvFw@mail.gmail.com
2025-03-15 22:07:48 -04:00
..
backend localbuf: Introduce TerminateLocalBufferIO() 2025-03-15 22:07:48 -04:00
bin pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
common Silence perl critic 2025-03-15 17:41:54 -04:00
fe_utils pg_rewind: Add dbname to primary_conninfo when using --write-recovery-conf. 2025-03-12 16:56:04 -07:00
include localbuf: Introduce TerminateLocalBufferIO() 2025-03-15 22:07:48 -04:00
interfaces pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
makefiles Add support for OAUTHBEARER SASL mechanism 2025-02-20 16:25:17 +01:00
pl Activate Python "Limited API" in PL/Python 2025-03-14 08:57:02 +01:00
port Assert that wrapper_handler()'s argument is within expected range. 2025-03-07 15:23:09 -06:00
template thread-safety: gmtime_r(), localtime_r() 2024-08-23 07:43:04 +02:00
test Remove direct handling of reloptions for toast tables 2025-03-14 09:28:51 +01:00
timezone pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
tools pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
tutorial Doc: simplify the tutorial's window-function examples. 2025-01-21 14:43:21 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Add support for OAUTHBEARER SASL mechanism 2025-02-20 16:25:17 +01:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00