Re: proposal: plpgsql pragma statement

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: bashtanov(at)imap(dot)cc
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: plpgsql pragma statement
Date: 2018-12-05 13:17:48
Message-ID: CAFj8pRD2mJPYtAhpuWtmpgHX2J4FxMXVRXykUN5MnA2wrg7VvQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

st 5. 12. 2018 v 12:42 odesílatel Alexey Bashtanov <bashtanov(at)imap(dot)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?

Regards

Pavel

>
> Best regards,
> Alexey
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexey Bashtanov 2018-12-05 13:43:21 Re: proposal: plpgsql pragma statement
Previous Message Alexey Bashtanov 2018-12-05 11:42:54 Re: proposal: plpgsql pragma statement