st 5. 12. 2018 v 12:42 odesílatel Alexey Bashtanov <bashtanov@imap.cc> napsal:
Hello Pavel,
> > The PRAGMA statement does nothing in runtime. It works only in compile > time, and add a pair of key, value to next non pragma statement. This > information can be used by some plpgsql extensions. > > What do you think about this proposal? >
You can use PERFORM as a workaround:
PERFORM 'PRAGMA', 'cmdtype', 'CREATE';
There's some overhead when executing, but probably not too much.
Thank you for tip, but I have not any idea, how it can work?