Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Re: [GENERAL] Postgres and Upstart

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


rosuav at gmail

Aug 10, 2012, 7:00 AM

Post #1 of 1 (52 views)
Permalink
Re: [GENERAL] Postgres and Upstart

On Fri, Aug 10, 2012 at 11:56 PM, Albe Laurenz <laurenz.albe [at] wien> wrote:
> Chris Angelico wrote:
>> I'm looking for a reliable way to be sure that Postgres has finished
>> its initialization and is ready to rumble.
>
> The normal way to test this is a connection attempt.
> You could also look into the server logs for the
> appropriate message, but that seems more fragile and difficult.

Yeah, I can poll it, and that's what I do in a couple of places; but
somewhere in the code, it probably "knows" that it's ready. I can keep
doing what I'm doing, but was hoping for an event-driven approach.

Thanks!

ChrisA
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.