pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Michael Banck <michael.banck@credativ.de>
To: tushar <tushar.ahuja@enterprisedb.com>
Cc: Amul Sul <sulamul@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [Patch] ALTER SYSTEM READ ONLY
Date: Fri, 26 Jun 2020 08:45:53 +0200
Message-ID: <5ef599a2.1c69fb81.f8b1d.dd8a@mx.google.com> (raw )
In-Reply-To: <e974a552-3e3e-c735-5179-7708dfa26ffb@enterprisedb.com >
References: <CAAJ_b97KZzdJsffwRK7w0XU5HnXkcgKgTR69t8cOZztsyXjkQw@mail.gmail.com >
<CAA4eK1+5BDNS08XKXR7UPkq4tDaV66wyZia4kDMvRUm=a_A=Gg@mail.gmail.com >
<CA+TgmoaNiofJXooq3HOG-2hRZR-JGFs6yyutwg9i7L=NKSBSDg@mail.gmail.com >
<CAA4eK1KWV5RFo=zTSvKVyY7Yt2ZWs55VZAqrUCpd+wRQ8+Tx_A@mail.gmail.com >
<CA+TgmoYz9Cx=hFsbG1V5P6-UmF6hcJM5HLd9EW+4HRro5kWRwg@mail.gmail.com >
<CAAJ_b96Lb+RXNiZ3=iikVw8DuV_xs=Ka1N9hwxMF46X+yArZyQ@mail.gmail.com >
<CAAJ_b94aYGq_8102UfUhv=1fNAuBMX+soYiOK43LuSPumAe9pQ@mail.gmail.com >
<e974a552-3e3e-c735-5179-7708dfa26ffb@enterprisedb.com >
Hi,
On Wed, Jun 24, 2020 at 01:54:29PM +0530, tushar wrote:
> On 6/22/20 11:59 AM, Amul Sul wrote:
> > 2. Now skipping the startup checkpoint if the system is read-only mode, as
> > discussed [2].
>
> I am not able to perform pg_checksums o/p after shutting down my server in
> read only mode .
>
> Steps -
>
> 1.initdb (./initdb -k -D data)
> 2.start the server(./pg_ctl -D data start)
> 3.connect to psql (./psql postgres)
> 4.Fire query (alter system read only;)
> 5.shutdown the server(./pg_ctl -D data stop)
> 6.pg_checksums
>
> [edb@tushar-ldap-docker bin]$ ./pg_checksums -D data
> pg_checksums: error: cluster must be shut down
> [edb@tushar-ldap-docker bin]$
What's the 'Database cluster state' from pg_controldata at this point?
Michael
--
Michael Banck
Projektleiter / Senior Berater
Tel.: +49 2166 9901-171
Fax: +49 2166 9901-100
Email: michael.banck@credativ.de
credativ GmbH, HRB Mönchengladbach 12080
USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer
Unser Umgang mit personenbezogenen Daten unterliegt
folgenden Bestimmungen: https://www.credativ.de/datenschutz
view thread (197+ messages) latest in thread
Message-ID: <5ef599a2.1c69fb81.f8b1d.dd8a@mx.google.com>
Permalink: ../5ef599a2.1c69fb81.f8b1d.dd8a@mx.google.com/
Also on: postgresql.org/message-id/5ef599a2.1c69fb81.f8b1d.dd8a@mx.google.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: michael.banck@credativ.de, tushar.ahuja@enterprisedb.com, sulamul@gmail.com, robertmhaas@gmail.com, amit.kapila16@gmail.com
Subject: Re: [Patch] ALTER SYSTEM READ ONLY
In-Reply-To: <5ef599a2.1c69fb81.f8b1d.dd8a@mx.google.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox