pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Gamache <cgg007@yahoo.com>
To: pgsql-odbc@postgresql.org
Subject: Connection Pooling and currval
Date: Fri, 28 Feb 2003 10:58:25 -0800 (PST)
Message-ID: <20030228185825.23585.qmail@web13801.mail.yahoo.com> (raw)
In-Reply-To: <20030225201215.50956.qmail@web13805.mail.yahoo.com>

I've enabled Connection Pooling on the PostgreSQL+ (Beta) 7.02.00.05, and
I think I'm having some state problems. 

I think currval() is returning a value from a recycled connection where it
should be undefined.

I can not duplicate this problem because I can not get the timing right, but it
is indicitive of ODBC pulling an active connection from the connection pool,
and PostgreSQL thinking it is the same connection as before... I'm using a
DSN-less connection... Can I modify this string to ensure that stateful
variables are reset even though the connection has not been (really) severed?

Here's my connection string

"Provider=MSDASQL.1;Password=xxxxxxx;Persist Security Info=True;User
ID=xxxxxxx;Mode=ReadWrite;Extended Properties=""DRIVER={PostgreSQL+
(Beta)};DATABASE=xxxxxxx;SERVER=10.10.0.1;PORT=5432;UID=xxxxxxx;PWD=xxxxxxx;READONLY=0;PROTOCOL=6.4;FAKEOIDINDEX=1;SHOWOIDCOLUMN=1;ROWVERSIONING=0;SHOWSYSTEMTABLES=0;CONNSETTINGS="""

Any other suggestions?

CG



__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



view thread (2+ messages)

Message-ID: <20030228185825.23585.qmail@web13801.mail.yahoo.com>
Permalink:  ../20030228185825.23585.qmail@web13801.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030228185825.23585.qmail@web13801.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: cgg007@yahoo.com
  Subject: Re: Connection Pooling and currval
  In-Reply-To: <20030228185825.23585.qmail@web13801.mail.yahoo.com>
  References: <20030225201215.50956.qmail@web13805.mail.yahoo.com> <20030228185825.23585.qmail@web13801.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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