Re: [Patch] ALTER SYSTEM READ ONLY
Prabhat Sahu <prabhat.sahu@enterprisedb.com>
Hi All, I was testing the feature on top of v3 patch and found the "pg_upgrade" failure after keeping "alter system read only;" as below: -- Steps: ./initdb -D data ./pg_ctl -D data -l logs start -c ./psql postgres alter system read only; \q ./pg_ctl -D data -l logs stop -c ./initdb -D data2 ./pg_upgrade -b . -B . -d data -D data2 -p 5555 -P 5520 [edb@localhost bin]$ ./pg_upgrade -b . -B . -d data -D data2 -p 5555 -P 5520 Performing Consistency Checks ----------------------------- Checking cluster versions ok The source cluster was not shut down cleanly. Failure, exiting --Below is the logs 2021-07-16 11:04:20.305 IST [105788] LOG: starting PostgreSQL 14devel on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39), 64-bit 2020-07-16 11:04:20.309 IST [105788] LOG: listening on IPv6 address "::1", port 5432 2020-07-16 11:04:20.309 IST [105788] LOG: listening on IPv4 address "127.0.0.1", port 5432 2020-07-16 11:04:20.321 IST [105788] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432" 2020-07-16 11:04:20.347 IST [105789] LOG: database system was shut down at 2020-07-16 11:04:20 IST 2020-07-16 11:04:20.352 IST [105788] LOG: database system is ready to accept connections 2020-07-16 11:04:20.534 IST [105790] LOG: system is now read only 2020-07-16 11:04:20.542 IST [105788] LOG: received fast shutdown request 2020-07-16 11:04:20.543 IST [105788] LOG: aborting any active transactions 2020-07-16 11:04:20.544 IST [105788] LOG: background worker "logical replication launcher" (PID 105795) exited with exit code 1 2020-07-16 11:04:20.544 IST [105790] LOG: shutting down 2020-07-16 11:04:20.544 IST [105790] LOG: skipping shutdown checkpoint because the system is read only 2020-07-16 11:04:20.551 IST [105788] LOG: database system is shut down On Tue, Jul 14, 2020 at 12:08 PM Amul Sul <sulamul@gmail.com> wrote: > Attached is a rebased version for the latest master head[1]. > > Regards, > Amul > > 1] Commit # 101f903e51f52bf595cd8177d2e0bc6fe9000762 > -- With Regards, Prabhat Kumar Sahu EnterpriseDB: http://www.enterprisedb.com
Commits
-
Initialize variable to placate compiler.
- a030a0c5ccb1 15.0 landed
-
StartupXLOG: Don't repeatedly disable/enable local xlog insertion.
- 18e0913a4203 15.0 landed
-
StartupXLOG: Call CleanupAfterArchiveRecovery after XLogReportParameters.
- a75dbf7f9ee6 15.0 landed
-
Postpone some end-of-recovery operations related to allowing WAL.
- 811051c2e7af 15.0 landed
-
Refactor some end-of-recovery code out of StartupXLOG().
- 6df1543abfed 15.0 landed
-
Re-enable contrib/bloom's TAP tests.
- 7d1aa6bf1c27 15.0 cited
-
Remove unnecessary call to ReadCheckpointRecord().
- 1d919de5eb3f 15.0 cited
-
Allow for error or refusal while absorbing a ProcSignalBarrier.
- a3ed4d1efe9f 14.0 landed
-
Add comment to explain an unused function parameter
- 101f903e51f5 14.0 cited
-
Extend the ProcSignal mechanism to support barriers.
- 16a4e4aecd47 13.0 cited
-
At promotion, don't leave behind a partial segment on the old timeline.
- 7cbee7c0a1db 9.5.0 cited