Re: BUG #5127: AbstractJdbc2Connection#doRollback should throws Exception if connection is closed

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <taktos(at)gmail(dot)com>,<pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #5127: AbstractJdbc2Connection#doRollback should throws Exception if connection is closed
Date: 2009-10-20 14:19:27
Message-ID: 4ADD809F020000250002BB8D@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

<taktos(at)gmail(dot)com> wrote:

> If PostgreSQL server is restarted, old Connection pooled in
> Application server's ConnectionPool cannot connect to DB.
> That's OK.
> But, I can call rollback() on old Connection and it throws no
> exception.

Hmmm.... What problem are you having? The transaction would have
been rolled back when the server was restarted (or if the connection
was broken). What benefit would you get from the exception you
suggest?

-Kevin

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-10-20 14:48:31 Re: Re: BUG #5065: pg_ctl start fails as administrator, with "could not locate matching postgres executable"
Previous Message taktos 2009-10-20 09:45:19 BUG #5127: AbstractJdbc2Connection#doRollback should throws Exception if connection is closed