Re: Keep-alive? - Mailing list pgadmin-support

From Andreas Pflug
Subject Re: Keep-alive?
Date
Msg-id 3F86B6BA.1010309@pse-consulting.de
Whole thread Raw
In response to Re: Keep-alive?  ("Dave Page" <dpage@vale-housing.co.uk>)
List pgadmin-support
Dave Page wrote:

>
>Anyway, the reason I posted the patch was to gather ideas and feedback,
>not to propose it as a final solution (as your initial comments indicate
>you thought). I don't see any way to implement this cleanly at this
>layer now so unless you or anyone else has any bright ideas I'll scrub
>it from the todo list as unworkable, and move one...
>  
>

pgAdmin3 is just another app, concerning the database connection. So if 
pgAdmin3 suffers from broken links, any other libpq app would too. It 
would make sense to implement this in libpq.
If we wanted to implement this in pgAdmin3, we'd need a global keepalive 
thread, scanning all connections if a keep alive query is needed, 
interlocking with a semaphor to prevent interference with wanted 
queries. This thread also could silently handle reconnects.


Regards,
Andreas




pgadmin-support by date:

Previous
From: "Dave Page"
Date:
Subject: Re: Keep-alive?
Next
From: Raphaël Enrici
Date:
Subject: Re: Cannot compile