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

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group