pgsql: dsm: allow use in single user mode.

Started by Andres Freundover 4 years ago1 messagescomitters
Jump to latest
#1Andres Freund
andres@anarazel.de

dsm: allow use in single user mode.

It might seem pointless to allow use of dsm in single user mode, but otherwise
subsystems might need dedicated single user mode code paths.

Besides changing the assert, all that's needed is to make some windows code
assuming the presence of postmaster conditional.

Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Thomas Munro <thomas.munro@gmail.com>
Discussion: /messages/by-id/CA+hUKGL9hY_VY=+oUK+Gc1iSRx-Ls5qeYJ6q=dQVZnT3R63Taw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/46a2d2499a647174585fcfe871ddd2d32244a128

Modified Files
--------------
src/backend/storage/ipc/dsm.c | 9 +++++++--
src/backend/storage/ipc/dsm_impl.c | 6 ++++--
2 files changed, 11 insertions(+), 4 deletions(-)