Re: How does an application recognize the death of the - Mailing list pgsql-general

From Reid Thompson
Subject Re: How does an application recognize the death of the
Date
Msg-id 4459F84F.2050708@ateb.com
Whole thread Raw
In response to How does an application recognize the death of the postmaster  (Geoffrey <esoteric@3times25.net>)
List pgsql-general
Geoffrey wrote:
> How do folks handle the death of the postmaster in their applications?
> Assuming the postmaster dies after an application has connected to the
> database, but before it makes a request.  What should I look for?
> Currently our application that's in development does not handle the
> situation well.  What we want to do is gracefully (as possible)
> shutdown the application.
>
you should provide a bit more information regarding your application...
is it C code, PHP, RUBY, etc.  Each of these would have different
solutions.  As already mentioned, some already have handling code that
throws errors.  Others may require a bit more work on your part to
recognize and handle the situation.

pgsql-general by date:

Previous
From: "Christo Romberg"
Date:
Subject: Re: FATAL: database "dspace" does not exist"
Next
From: "Guy Rouillier"
Date:
Subject: Re: Segfaults with 8.1.3 on amd64