Re: Patching dblink.c to avoid warning about open transaction - Mailing list pgsql-hackers

From Jonathan Beit-Aharon
Subject Re: Patching dblink.c to avoid warning about open transaction
Date
Msg-id 43394A88.2020902@intrusic.com
Whole thread Raw
In response to Re: Patching dblink.c to avoid warning about open transaction  (Joe Conway <mail@joeconway.com>)
List pgsql-hackers
Joe Conway wrote:

> Bruce Momjian wrote:
>
>> [ Joe, would you review this? ]
>>
>> Your patch has been added to the PostgreSQL unapplied patches list at:
>>
>>     http://momjian.postgresql.org/cgi-bin/pgpatches
>>
>> It will be applied as soon as one of the PostgreSQL committers reviews
>> and approves it.
>
>
> The patch itself is pretty simple, but I'm unclear on the use case. 
> Jonathan, can you elaborate a bit?
>
> Thanks,
>
> Joe
>
> p.s. I'm on a business trip in Asia again, so my responses may be 
> delayed a bit.

Hi Joe,
We are using the dblink module on Sensor servers to provide 
summarization services to a Central server.  Sensors are in the business 
of populating certain Postgres databases, and the Central is in the 
business of populating a summary Postgres database.  The issue in our 
situation is that the Central server does an explicit BEGIN transaction 
some time before it calls the dblink_open() routine.  On the Sensors, we 
were getting many "there is already a transaction in progress" warnings, 
and overflowing our log storage.  Is this patch the right way to go 
about this?
Thanks,
Jonathan


pgsql-hackers by date:

Previous
From: Gnanavel S
Date:
Subject: Re: PostgreSQL overall design
Next
From: Gnanavel S
Date:
Subject: Re: [PERFORM] PostgreSQL overall design