On 11/15/2012 05:02 PM, Sergio Mayoral
wrote:
What's "too long"? If you mean that you intend to open a new connection, do a single INSERT, and close the connection - your performance will be awful. If your app can't use persistent or pooled connections, use PgBouncer as an external connection pool. Have your app connect to PgBouncer, and PgBouncer connect to PostgreSQL. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services |