Re: Fixes for autocommit = off

From: Joe Conway <mail(at)joeconway(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Fixes for autocommit = off
Date: 2002-10-16 06:10:03
Message-ID: 3DAD02BB.1060309@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Bruce Momjian wrote:
> Here are some patches I applied that attempt to fix some of our
> utilities for the 'autocommit = off' world. I still need to do more
> work.

Speaking of autocommit = off, I was contemplating sending in a patch for
dblink with this in it:

appendStringInfo(str,
"BEGIN;SET autocommit='on';COMMIT; %s",
GET_STR(PG_GETARG_TEXT_P(1)));

(where arg 1 is the user provided sql statement) to cover the non-persistent
connection case for dblink_exec. Is this the recommended client fix?

Joe

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Denis Perchine 2002-10-16 13:03:04 JDBC patch reduces memory consumption
Previous Message Bruce Momjian 2002-10-16 05:52:56 Fixes for autocommit = off