pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexey Bashtanov <bashtanov@imap.cc>
Cc: pgsql-bugs@postgresql.org
Cc: mmitar@gmail.com
Subject: Re: Is temporary functions feature official/supported? Found some issues with it.
Date: Wed, 02 Jan 2019 14:22:29 -0500
Message-ID: <22938.1546456949@sss.pgh.pa.us> (raw)
In-Reply-To: <5d910e2e-0db8-ec06-dd5f-baec420513c3@imap.cc>
References: <5d910e2e-0db8-ec06-dd5f-baec420513c3@imap.cc>

Alexey Bashtanov <bashtanov@imap.cc> writes:
> Is creating functions in pg_temp schema something we support?

Yeah.

> I found that a combination of temporary functions and prepared 
> transactions can lead to:
> 1) all other sessions being unable to create a temporary table until the 
> prepared transaction is finished (reproducible);

Locking issue perhaps?  It's not a bug if a prepared transaction
is holding a lock.

> 2) data corruption in pg_namespace, server crash (happened a few times, 
> but I'm not yet sure how to reproduce).

That would be interesting.

			regards, tom lane




view thread (22+ messages)  latest in thread

Message-ID: <22938.1546456949@sss.pgh.pa.us>
Permalink:  ../22938.1546456949@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22938.1546456949@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bashtanov@imap.cc, mmitar@gmail.com
  Subject: Re: Is temporary functions feature official/supported? Found some issues with it.
  In-Reply-To: <22938.1546456949@sss.pgh.pa.us>
  References: <5d910e2e-0db8-ec06-dd5f-baec420513c3@imap.cc> <22938.1546456949@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