pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexey Bashtanov <bashtanov@imap.cc>
To: pgsql-bugs@postgresql.org
Cc: mmitar@gmail.com
Subject: Is temporary functions feature official/supported? Found some issues with it.
Date: Wed, 2 Jan 2019 17:33:12 +0000
Message-ID: <5d910e2e-0db8-ec06-dd5f-baec420513c3@imap.cc> (raw)

Hello,

Is creating functions in pg_temp schema something we support?
It's undocumented as far as I could see, but maybe I missed it.
People seem to use it.

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);
2) data corruption in pg_namespace, server crash (happened a few times, 
but I'm not yet sure how to reproduce).

Is it something worth reporting in more detail?

Best,
   Alex




view thread (22+ messages)  latest in thread

Message-ID: <5d910e2e-0db8-ec06-dd5f-baec420513c3@imap.cc>
Permalink:  ../5d910e2e-0db8-ec06-dd5f-baec420513c3@imap.cc/
Also on:    postgresql.org/message-id/5d910e2e-0db8-ec06-dd5f-baec420513c3@imap.cc

 · 

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

* 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