pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedConnection pooling
5+ messages / 5 participants
[nested] [flat]
* Connection pooling
@ 2003-03-06 01:11 Robert John Shepherd <robert@reviewer.co.uk>
0 siblings, 0 replies; 5+ messages in thread
From: Robert John Shepherd @ 2003-03-06 01:11 UTC (permalink / raw)
To: pgsql-odbc
I still suffer from a problem relating to connection pooling with the
ODBC driver.
I have a finite number of connections allowed on my pgsql server which
is ample for my website 99% of the time. However whenever there is an
interruption of network data between my web server and db server, this
seems to result in a sudden huge increase in connection attempts which
quickly exceeds the number available.
This also happens whenever I do something that ties up the db server for
any length of time on a single query, such as rebuilding tsearch
indexes.
I'm presuming this is related to our website users getting frustrated
and clicking refresh, causing a new connection attempt each time.
Is this a valid assessment of the situation? And if so is there any
solution?
I'd far rather my web server just waited for an existing connection to
become available when its at the limit than get an instant refusal. :/
Slow webpages are better than no webpages or ones with errors all over
them (or in our case ones inviting our users to email us and let us know
its borked!).
Yours Unwhettedly,
Robert John Shepherd.
Editor
DVD REVIEWER
The UK's BIGGEST Online DVD Magazine
http://www.dvd.reviewer.co.uk
For a copy of my Public PGP key, email: pgp@robertsworld.org.uk
^ permalink raw reply [nested|flat] 5+ messages in thread
* Connection Pooling
@ 2004-10-01 17:51 Max Cohan <mcohan@adnc.net>
0 siblings, 0 replies; 5+ messages in thread
From: Max Cohan @ 2004-10-01 17:51 UTC (permalink / raw)
To: pgsql-odbc
Does anyone know if there is a way to do selective connection
pooling with ODBC. That is, most of the connections in my application
can be safely pooled. However, there are a couple of specific ones where
I use temp. tables...
Can I specify which connections are out of the pool and which are
'fresh'? Or do I have to develop my own pooling solution?
Specifically, I am using VB.NET and the ODBC provider for .NET to
the PgSQL ODBC driver.
Thanks,
Max
^ permalink raw reply [nested|flat] 5+ messages in thread
* Connection Pooling
@ 2005-07-20 19:55 Craig Bryden <postgresql@bryden.co.za>
0 siblings, 0 replies; 5+ messages in thread
From: Craig Bryden @ 2005-07-20 19:55 UTC (permalink / raw)
To: pgsql-odbc
Hi
Please can someone point me to documentation or help me with Connection
pooling using the ODBC driver.
My questions are:
1. How do I enable connection pooling?
2. How do I set the min and max connections?
3. I have a standard PostgreSQL installation (win32). Do I need to change
any settings for pooling to work?
Thanks
Craig
^ permalink raw reply [nested|flat] 5+ messages in thread
* Connection Pooling
@ 2008-04-01 15:56 Benjamin Krajmalnik <kraj@illumen.com>
0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Krajmalnik @ 2008-04-01 15:56 UTC (permalink / raw)
To: pgsql-odbc
Does the latest version of the ODBC driver for windows support
connection pooling?
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Connection Pooling
@ 2008-04-07 02:41 Andrei Kovalevski <andyk@commandprompt.com>
parent: Benjamin Krajmalnik <kraj@illumen.com>
0 siblings, 0 replies; 5+ messages in thread
From: Andrei Kovalevski @ 2008-04-07 02:41 UTC (permalink / raw)
To: Benjamin Krajmalnik <kraj@illumen.com>; +Cc: pgsql-odbc
Hello,
Connection pooling was introduced in ODBC 3.0. It is ODBC driver
manager's relative feature. If the driver is thread-safe - then ODBC
Driver Manager will be able to use it in Connection pooling. All known
PostgreSQL ODBC drivers are thread-safe. This page could help you to
answer some of your questions - http://support.microsoft.com/kb/169470.
Benjamin Krajmalnik wrote:
> Does the latest version of the ODBC driver for windows support
> connection pooling?
>
--
Andrei Kovalevski
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2008-04-07 02:41 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-06 01:11 Connection pooling Robert John Shepherd <robert@reviewer.co.uk>
2004-10-01 17:51 Connection Pooling Max Cohan <mcohan@adnc.net>
2005-07-20 19:55 Connection Pooling Craig Bryden <postgresql@bryden.co.za>
2008-04-01 15:56 Connection Pooling Benjamin Krajmalnik <kraj@illumen.com>
2008-04-07 02:41 ` Re: Connection Pooling Andrei Kovalevski <andyk@commandprompt.com>
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