pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Rick Otten <rottenwindfish@gmail.com>
Cc: ronan.dunklau@dalibo.com, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Subject: Re: your mail
Date: Tue, 08 Aug 2017 17:12:14 -0400
Message-ID: <17591.1502226734@sss.pgh.pa.us> (raw)
In-Reply-To: <20170808201838.vt5lyujd3fvgtxyq@alap3.anarazel.de>
References: <20170808194943.smet3uuvtxats44v@alap3.anarazel.de>
	<15541.1502223315@sss.pgh.pa.us>
	<20170808201838.vt5lyujd3fvgtxyq@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (5+ messages)  latest in thread

Message-ID: <17591.1502226734@sss.pgh.pa.us>
Permalink:  ../17591.1502226734@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17591.1502226734@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, rottenwindfish@gmail.com, amit.kapila16@gmail.com, robertmhaas@gmail.com
  Subject: Re: your mail
  In-Reply-To: <17591.1502226734@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox