Alexey Bashtanov <bashtanov(at)imap(dot)cc> writes: > Is creating functions in pg_temp schema something we support?
> 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).