pg.ddx.io pgsql-odbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Idle connections - Too many clients connected already 3+ messages / 2 participants [nested] [flat]
* Idle connections - Too many clients connected already @ 2004-01-22 06:57 Philippe Lang <philippe.lang@attiksystem.ch> 2004-01-22 10:32 ` Re: Idle connections - Too many clients connected already Richard Huxton <dev@archonet.com> 0 siblings, 1 reply; 3+ messages in thread From: Philippe Lang @ 2004-01-22 06:57 UTC (permalink / raw) To: pgsql-odbc Hello, After using Postgresql for a while, through ODBC / MS Access, I'm not able to connect to the server anymore. The server reports "Too many clients connected already". With a "ps -afx", I can see a lot of idle postgresql connections on the server, which correspond for sure to ODBC connections that haven't been closed properly, and that remain opened. Stopping and restarting the server solves the problem. Is there a way to avoid that? I cannot certifiy that clients will always close their connexions in a clean way. So, is the server able to check if clients are still alive, and close their connection if it's not the case? Thanks Philippe ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Idle connections - Too many clients connected already 2004-01-22 06:57 Idle connections - Too many clients connected already Philippe Lang <philippe.lang@attiksystem.ch> @ 2004-01-22 10:32 ` Richard Huxton <dev@archonet.com> 0 siblings, 0 replies; 3+ messages in thread From: Richard Huxton @ 2004-01-22 10:32 UTC (permalink / raw) To: Philippe Lang <philippe.lang@attiksystem.ch>; pgsql-odbc On Thursday 22 January 2004 06:57, Philippe Lang wrote: > Hello, > > After using Postgresql for a while, through ODBC / MS Access, I'm not > able to connect to the server anymore. The server reports "Too many > clients connected already". [snip] > Is there a way to avoid that? I cannot certifiy that clients will always > close their connexions in a clean way. So, is the server able to check > if clients are still alive, and close their connection if it's not the > case? You can set a timeout for the ODBC on each client. I can't remember if this is in the odbc driver settings panel or where. Worst case, it's a registry setting. That should do what you want. -- Richard Huxton Archonet Ltd ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Idle connections - Too many clients connected already @ 2004-01-22 13:27 Philippe Lang <philippe.lang@attiksystem.ch> 0 siblings, 0 replies; 3+ messages in thread From: Philippe Lang @ 2004-01-22 13:27 UTC (permalink / raw) To: Richard Huxton <dev@archonet.com>; pgsql-odbc Hello, I have already activated this option in the registry. It is necessary in order to avoid a connection drop when the client is idle for some time. But my problem is different here. I would like a connection to be dropped on the server when the client has disconnected... Philippe -----Message d'origine----- De : Richard Huxton [mailto:dev@archonet.com] Envoyé : jeudi, 22. janvier 2004 11:33 À : Philippe Lang; pgsql-odbc@postgresql.org Objet : Re: [ODBC] Idle connections - Too many clients connected already On Thursday 22 January 2004 06:57, Philippe Lang wrote: > Hello, > > After using Postgresql for a while, through ODBC / MS Access, I'm not > able to connect to the server anymore. The server reports "Too many > clients connected already". [snip] > Is there a way to avoid that? I cannot certifiy that clients will > always close their connexions in a clean way. So, is the server able > to check if clients are still alive, and close their connection if > it's not the case? You can set a timeout for the ODBC on each client. I can't remember if this is in the odbc driver settings panel or where. Worst case, it's a registry setting. That should do what you want. -- Richard Huxton Archonet Ltd ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2004-01-22 13:27 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2004-01-22 06:57 Idle connections - Too many clients connected already Philippe Lang <philippe.lang@attiksystem.ch> 2004-01-22 10:32 ` Richard Huxton <dev@archonet.com> 2004-01-22 13:27 Re: Idle connections - Too many clients connected already Philippe Lang <philippe.lang@attiksystem.ch>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox