Search Postgresql Archives

Re: How to wait until startup completes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gary Horton <Gary.Horton@xxxxxxx> writes:
> Tom Lane wrote:
>> The -w-doesn't-wait-long-enough bit needs investigation.

> No messages, no smoking gun. If you mean running the sh script with -x, 
> it's really not complicated enough to warrant that - I've added echo 
> statements to confirm that it's just falling through. But let's be sure 
> we're saying the same thing: I would expect pg_ctl -w to /block/ until 
> database is started, in other words by the time the pg_ctl command 
> "returns", then checking database status with psql -l should 
> succeed...are we on the same page?

Yeah ... in fact, if you read the script, what it does is loop until a
psql -l succeeds ... so why wouldn't your following instance also
succeed?

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
      message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux