From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal: plpgsql pragma statement |
Date: | 2018-12-08 06:59:42 |
Message-ID: | CAFj8pRCJYAkH9rv89xOxxb3o02fHzxZ1E+tu+A5rZYGFVdDU=Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
pá 7. 12. 2018 v 21:28 odesílatel Robert Haas <robertmhaas(at)gmail(dot)com>
napsal:
> On Thu, Dec 6, 2018 at 12:28 PM Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> wrote:
> > please, can you propose, some what you like?
> >
> > For my purpose I can imagine PRAGMA on function level with same syntax
> like PL/SQL - I need to push somewhere some information that I can use for
> plpgsql_check to protect users against false alarms. The locality in this
> moment is not too important for me. But I prefer solution that doesn't
> looks too strange, and is possible just with change plpgsql parser.
>
> Well, I haven't really studied this, but I would assume a
> statement-level pragma would look like an annotation of some kind on
> that particular statement, e.g.
>
> PRAGMA plpgsql_check (magic pavel stuff goes here) SELECT ...
>
> Rather than a separate statement:
>
> PRAGMA plpgsql_check (magic pavel stuff goes here);
> SELECT ...
>
> This might be the wrong idea, I'm not an expert on this or anything.
>
it looks strange - if we use a Ada like keyword, we should to use Ada like
syntax. and it can looks pretty strange if we will think about multiple
PRAGMAs.
For my purpose, the function level or block level pragma can be enough -
and there maybe will not be a problem, because you, me would to use PL/SQL
near syntax.
Regards
Pavel
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2018-12-08 08:23:09 | Re: extended query protcol violation? |
Previous Message | Michael Paquier | 2018-12-08 06:54:36 | Re: pg_partition_tree crashes for a non-defined relation |