Re: [Patch] ALTER SYSTEM READ ONLY

From: Amul Sul <sulamul(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [Patch] ALTER SYSTEM READ ONLY
Date: 2020-06-22 06:29:09
Message-ID: CAAJ_b94aYGq_8102UfUhv=1fNAuBMX+soYiOK43LuSPumAe9pQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi All,

Attaching a new set of patches rebased atop the latest master head and includes
the following changes:

1. Enabling ALTER SYSTEM READ { ONLY | WRITE } support for the single-user,
discussed here [1]

2. Now skipping the startup checkpoint if the system is read-only mode, as
discussed [2].

3. While changing the system state to READ-WRITE, a new checkpoint request will
be made.

All these changes are part of the v2-0004 patch and the rest of the patches will
be the same as the v1.

Regards,
Amul

1] https://postgr.es/m/CAAJ_b96WPPt-=vyjpPUy8pG0vAvLgpjLukCZONUkvdR1_exrKA@mail.gmail.com
2] https://postgr.es/m/CAAJ_b95hddJrgciCfri2NkTLdEUSz6zdMSjoDuWPFPBFvJy+Kg@mail.gmail.com

Attachment Content-Type Size
v2-0006-Documentation-WIP.patch application/x-patch 6.5 KB
v2-0003-Implement-ALTER-SYSTEM-READ-ONLY-using-global-bar.patch application/x-patch 22.4 KB
v2-0001-Allow-error-or-refusal-while-absorbing-barriers.patch application/x-patch 4.4 KB
v2-0005-Error-or-Assert-before-START_CRIT_SECTION-for-WAL.patch application/x-patch 59.2 KB
v2-0002-Add-alter-system-read-only-write-syntax.patch application/x-patch 7.4 KB
v2-0004-Use-checkpointer-to-make-system-READ-ONLY-or-READ.patch application/x-patch 16.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message movead.li@highgo.ca 2020-06-22 06:31:37 pg_resetwal --next-transaction-id may cause database failed to restart.
Previous Message Thomas Munro 2020-06-22 06:27:19 Testing big endian code with Travis CI's new s390x support