pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: tushar <tushar.ahuja@enterprisedb.com>
To: Amul Sul <sulamul@gmail.com>
To: 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: Wed, 24 Jun 2020 13:54:29 +0530
Message-ID: <e974a552-3e3e-c735-5179-7708dfa26ffb@enterprisedb.com> (raw )
In-Reply-To: <CAAJ_b94aYGq_8102UfUhv=1fNAuBMX+soYiOK43LuSPumAe9pQ@mail.gmail.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 >
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]$
Result - (when server is not in read only)
[edb@tushar-ldap-docker bin]$ ./pg_checksums -D data
Checksum operation completed
Files scanned: 916
Blocks scanned: 2976
Bad checksums: 0
Data checksum version: 1
--
regards,tushar
EnterpriseDB https://www.enterprisedb.com/
The Enterprise PostgreSQL Company
view thread (197+ messages) latest in thread
Message-ID: <e974a552-3e3e-c735-5179-7708dfa26ffb@enterprisedb.com>
Permalink: ../e974a552-3e3e-c735-5179-7708dfa26ffb@enterprisedb.com/
Also on: postgresql.org/message-id/e974a552-3e3e-c735-5179-7708dfa26ffb@enterprisedb.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: tushar.ahuja@enterprisedb.com, sulamul@gmail.com, robertmhaas@gmail.com, amit.kapila16@gmail.com
Subject: Re: [Patch] ALTER SYSTEM READ ONLY
In-Reply-To: <e974a552-3e3e-c735-5179-7708dfa26ffb@enterprisedb.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