Re: [BUGS] your mail - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] your mail
Date
Msg-id 17591.1502226734@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] your mail  (Andres Freund <andres@anarazel.de>)
Responses Re: [BUGS] your mail  (Andres Freund <andres@anarazel.de>)
List pgsql-bugs
Andres Freund <andres@anarazel.de> writes:
> On 2017-08-08 16:15:15 -0400, Tom Lane wrote:
>> I don't see much of a way to do that in the "typical" case where
>> the library load happens as a result of a SQL command.  You can't
>> just say "oh, we're not in a transaction" and then later "wait,
>> yes we are".

> Transaction seems hard, but setting CurrentMemoryContext = NULL during
> library load seems quite possible. And that'll cause a lot of code that
> assumes an in-progress transaction to fail.

And it would cause a lot of code that *doesn't* assume that to fail,
too.  That has basically nothing to do with not being in a transaction,
so I don't think it would be helpful here.
        regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Andres Freund
Date:
Subject: Re: [BUGS] your mail
Next
From: Andres Freund
Date:
Subject: Re: [BUGS] your mail