diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2024-02-12 00:33:44 +0200 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2024-02-12 00:52:25 +0200 |
commit | 8be93177c46b0f6a29a7376229b7ee002066d5f8 (patch) | |
tree | 1f74eb92722f4c9dbc84dc103f9fb38591f0f950 /src/backend/access/transam/xlog.c | |
parent | 428e2de1b895079bbf50a128f8b3824679f4bb65 (diff) | |
download | postgresql-8be93177c46b0f6a29a7376229b7ee002066d5f8.tar.gz postgresql-8be93177c46b0f6a29a7376229b7ee002066d5f8.zip |
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
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions