postgresql/src
Alexander Korotkov 8be93177c4 Use heap_inplace_update() to unset pg_database.dathasloginevt
Doing this instead of regular updates serves two purposes. First, that avoids
possible waiting on the row-level lock.  Second, that avoids dealing with
TOAST.

It's known that changes made by heap_inplace_update() may be lost due to
concurrent normal updates.  However, we are OK with that.  The subsequent
connections will still have a chance to set "dathasloginevt" to false.

Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/e2a0248e-5f32-af0c-9832-a90d303c2c61%40gmail.com
2024-02-12 00:52:25 +02:00
..
backend Use heap_inplace_update() to unset pg_database.dathasloginevt 2024-02-12 00:52:25 +02:00
bin Refactor pipe_read_line to return the full line 2024-02-09 15:03:16 +01:00
common Refactor pipe_read_line to return the full line 2024-02-09 15:03:16 +01:00
fe_utils Update copyright for 2024 2024-01-03 20:49:05 -05:00
include Fix gai_strerror() thread-safety on Windows. 2024-02-12 11:14:21 +13:00
interfaces Avoid concurrent calls to bindtextdomain(). 2024-02-09 11:21:08 -05:00
makefiles Add backend support for injection points 2024-01-22 10:15:50 +09:00
pl Fix plpgsql to allow new-style SQL CREATE FUNCTION as a SQL command. 2024-01-18 16:11:16 -05:00
port Fix gai_strerror() thread-safety on Windows. 2024-02-12 11:14:21 +13:00
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test Use extensible buffers to assemble command lines 2024-02-11 09:27:48 +01:00
timezone Update time zone data files to tzdata release 2024a. 2024-02-01 15:57:53 -05:00
tools Remove obsolete script related to MSVC build system 2024-02-11 23:43:50 +01:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Remove make function vpathsearch 2024-01-29 07:24:59 +01:00
Makefile.shlib Support shared libraries on Android (using make) 2024-01-23 20:37:49 +01:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00