postgresql/src/backend
Nathan Bossart 963d3072af Convert unloggedLSN to an atomic variable.
Currently, this variable is an XLogRecPtr protected by a spinlock.
By converting it to an atomic variable, we can remove the spinlock,
which saves a small amount of shared memory space.  Since this code
is not performance-critical, we use atomic operations with full
barrier semantics to make it easy to reason about correctness.

Author: John Morris
Reviewed-by: Michael Paquier, Robert Haas, Andres Freund, Stephen Frost, Bharath Rupireddy
Discussion: https://postgr.es/m/BYAPR13MB26772534335255E50318C574A0409%40BYAPR13MB2677.namprd13.prod.outlook.com
Discussion: https://postgr.es/m/MN2PR13MB2688FD8B757316CB5C54C8A2A0DDA%40MN2PR13MB2688.namprd13.prod.outlook.com
2024-02-29 14:34:10 -06:00
..
access Convert unloggedLSN to an atomic variable. 2024-02-29 14:34:10 -06:00
archive Update copyright for 2024 2024-01-03 20:49:05 -05:00
backup Fix incorrect format placeholder 2024-02-26 07:16:31 +01:00
bootstrap Make attstattarget nullable 2024-01-13 18:14:53 +01:00
catalog Remove unnecessary array object_classes[] in dependency.c 2024-02-27 15:18:17 +09:00
commands Support MERGE into updatable views. 2024-02-29 15:56:59 +00:00
executor Support MERGE into updatable views. 2024-02-29 15:56:59 +00:00
foreign Update copyright for 2024 2024-01-03 20:49:05 -05:00
jit jit: Require at least LLVM 10. 2024-01-25 15:42:34 +13:00
lib Fix comments for the dshash_parameters struct. 2024-02-27 09:44:59 -06:00
libpq Update copyright for 2024 2024-01-03 20:49:05 -05:00
main Remove dummy_spinlock 2024-01-25 11:43:47 +01:00
nodes Add missing RangeTblEntry field to jumble 2024-02-29 14:09:09 +01:00
optimizer Support MERGE into updatable views. 2024-02-29 15:56:59 +00:00
parser Support MERGE into updatable views. 2024-02-29 15:56:59 +00:00
partitioning Minor corrections for partition pruning 2024-02-20 18:34:21 +13:00
po Update copyright for 2024 2024-01-03 20:49:05 -05:00
port Remove AIX support 2024-02-28 15:17:23 +04:00
postmaster Convert archiver's force_dir_scan variable to an atomic variable. 2024-02-29 10:17:55 -06:00
regex Update copyright for 2024 2024-01-03 20:49:05 -05:00
replication Fixups for commit 93db6cbda0. 2024-02-29 09:45:20 +05:30
rewrite Support MERGE into updatable views. 2024-02-29 15:56:59 +00:00
snowball Add copyright notices to a few perl scripts that don't have them 2024-01-05 13:15:50 +00:00
statistics Update copyright for 2024 2024-01-03 20:49:05 -05:00
storage Improve performance of subsystems on top of SLRU 2024-02-28 17:05:31 +01:00
tcop Fix typo 2024-02-21 11:32:28 +01:00
tsearch Update copyright for 2024 2024-01-03 20:49:05 -05:00
utils Fix integer underflow in shared memory debugging 2024-02-29 12:19:52 +01: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 Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Remove AIX support 2024-02-28 15:17:23 +04:00
nls.mk Remove distprep 2023-11-06 15:18:04 +01:00