Re: Reducing pg_ctl's reaction time
Jeff Janes <jeff.janes@gmail.com>
From: Jeff Janes <jeff.janes@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>,
Michael Paquier <michael.paquier@gmail.com>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2017-06-29T18:49:43Z
Lists: pgsql-hackers
On Thu, Jun 29, 2017 at 11:39 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Jeff Janes <jeff.janes@gmail.com> writes: > > In the now-committed version of this, the 'pg_ctl start' returns > > successfully as soon as the server reaches a consistent state. Which is > OK, > > except that it does the same thing when hot_standby=off. When > > hot_standby=off, I would expect it to wait for the end of recovery before > > exiting with a success code. > > Um, won't it be waiting forever with that definition? > > regards, tom lane > No, this isn't streaming. It hits the PITR limit (recovery_target_*), or runs out of archived wal, and then it opens for business. Cheers, Jeff
Commits
-
Change pg_ctl to detect server-ready by watching status in postmaster.pid.
- f13ea95f9e47 10.0 landed
-
Reduce pg_ctl's reaction time when waiting for postmaster start/stop.
- c61559ec3a41 10.0 landed