Re: [GENERAL] Postgres and Upstart

Discussion in 'Python' started by Chris Angelico, Aug 10, 2012.

  1. On Fri, Aug 10, 2012 at 11:56 PM, Albe Laurenz <> 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
    Chris Angelico, Aug 10, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. K S Aldebaraan

    getDate() method and postgres datatype

    K S Aldebaraan, Aug 15, 2003, in forum: Java
    Replies:
    4
    Views:
    13,446
    K S Aldebaraan
    Aug 22, 2003
  2. Liam Slusser

    socketserver and postgres

    Liam Slusser, Oct 6, 2003, in forum: Python
    Replies:
    0
    Views:
    348
    Liam Slusser
    Oct 6, 2003
  3. Paul Rudin

    python-daemonize and upstart

    Paul Rudin, Nov 14, 2009, in forum: Python
    Replies:
    3
    Views:
    2,350
    Paul Rudin
    Nov 14, 2009
  4. Clark Jefcoat

    CSV Files and Postgres (and Ruby)

    Clark Jefcoat, Oct 2, 2003, in forum: Ruby
    Replies:
    3
    Views:
    113
    Charles Hixson
    Oct 3, 2003
  5. Nick Black
    Replies:
    1
    Views:
    143
    Kashia Buch
    Nov 16, 2006
Loading...

Share This Page