From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Move InRecovery and standbyState global vars to xlogutils.c. |
Date: | 2021-07-31 07:11:13 |
Message-ID: | E1m9j9N-0005tg-H8@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Move InRecovery and standbyState global vars to xlogutils.c.
They are used in code that runs both during normal operation and during
WAL replay, and needs to behave differently during replay. Move them to
xlogutils.c, because that's where we have other helper functions used by
redo routines.
Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/b3b71061-4919-e882-4857-27e370ab134a%40iki.fi
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/317632f3073fc06047a42075eb5e28a9577a4f96
Modified Files
--------------
src/backend/access/heap/visibilitymap.c | 2 +-
src/backend/access/transam/commit_ts.c | 1 +
src/backend/access/transam/multixact.c | 2 +-
src/backend/access/transam/slru.c | 1 +
src/backend/access/transam/varsup.c | 2 +-
src/backend/access/transam/xlog.c | 16 -------------
src/backend/access/transam/xlogutils.c | 20 ++++++++++++++++
src/backend/commands/tablespace.c | 2 +-
src/backend/postmaster/startup.c | 1 +
src/backend/storage/buffer/bufmgr.c | 2 +-
src/backend/storage/ipc/procarray.c | 2 +-
src/backend/storage/ipc/standby.c | 2 +-
src/backend/storage/lmgr/lock.c | 1 +
src/backend/storage/lmgr/proc.c | 2 +-
src/backend/storage/smgr/smgr.c | 2 +-
src/include/access/xlog.h | 42 ---------------------------------
src/include/access/xlogutils.h | 42 +++++++++++++++++++++++++++++++++
17 files changed, 75 insertions(+), 67 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Dean Rasheed | 2021-07-31 10:35:43 | pgsql: Fix corner-case errors and loss of precision in numeric_power(). |
Previous Message | Amit Kapila | 2021-07-31 04:41:49 | Re: pgsql: Add support for prepared transactions to built-in logical replic |