Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Connection of postgres


  • From: "Nguyen, Lam Thuy" <l7nguyen(at)fcg(dot)com>
  • To: "Adam M" <gnuman1(at)gmail(dot)com>
  • Cc: <pgsql-odbc(at)postgresql(dot)org>
  • Subject: Re: Connection of postgres
  • Date: Thu, 10 Apr 2008 01:57:41 +0700
  • Message-id: <C3D5057033EDF145B90A99CD9025BFEA01C60206(at)hont05(dot)fcg(dot)com>

i open connection, and leave it for few hour, and then excute query, and get error.

________________________________

From: pgsql-odbc-owner(at)postgresql(dot)org on behalf of Adam M
Sent: Wed 4/9/2008 2:40 PM
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: [ODBC] Connection of postgres



I've had a similar "problem". The connection times out and get closed
after a few hours. The solution was to do a query to keep the database
alive, for example "SELECT 1" and that's all. That is done every few
minutes.

The real test is to open 250 connections, and issue queries on each
without idle time. Does connection drop occur on active connections?

--
Sent via pgsql-odbc mailing list (pgsql-odbc(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group