From: | tushar <tushar(dot)ahuja(at)enterprisedb(dot)com> |
---|---|
To: | Amul Sul <sulamul(at)gmail(dot)com>, 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-24 08:24:29 |
Message-ID: | e974a552-3e3e-c735-5179-7708dfa26ffb@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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(at)tushar-ldap-docker bin]$ ./pg_checksums -D data
pg_checksums: error: cluster must be shut down
[edb(at)tushar-ldap-docker bin]$
Result - (when server is not in read only)
[edb(at)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
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2020-06-24 08:33:22 | Re: should libpq also require TLSv1.2 by default? |
Previous Message | Inoue, Hiroshi | 2020-06-24 08:20:42 | Re: Removal of currtid()/currtid2() and some table AM cleanup |