pgsql: dsm: allow use in single user mode.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: dsm: allow use in single user mode.
Date: 2022-04-06 19:44:40
Message-ID: E1ncBa4-000cn5-0v@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)anarazel(dot)de>
Reviewed-By: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Discussion: https://postgr.es/m/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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-04-06 20:25:30 pgsql: pgstat: move transactional code into pgstat_xact.c.
Previous Message Stephen Frost 2022-04-06 19:00:25 pgsql: Forgotten catversion bump for 39969e2a1e4d7f5a37f3ef37d53bbfe171