Re: proposal: plpgsql: special comments that will be part of AST

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: plpgsql: special comments that will be part of AST
Date: 2021-07-25 13:34:15
Message-ID: CAFj8pRBgeWu7XreTHT4vTiUFrMrLJMOuy=r0f2N1gbiXfCwtvw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

>
> some like:
>
> //* plpgsql_check: OFF *//
> RAISE NOTICE '%', r.x
>
> or second design
>
> b) can we introduce some flag for plpgsql_parser, that allows storing
> comments in AST (it will not be default).
>
> so "-- plpgsql_check: OFF " will work for my purpose, and I don't need
> any special syntax.
>
> Comments, notes?
>

When I started work on PoC I found that it was not a good idea. Comments
can be everywhere, but it is not possible to enhance plpgsql's gram in this
way. So this is not an way

Regards

Pavel

> Pavel
>
> https://github.com/okbob/plpgsql_check
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-07-25 14:49:43 Re: Rename of triggers for partitioned tables
Previous Message Pavel Stehule 2021-07-25 11:03:35 Re: [PROPOSAL] new diagnostic items for the dynamic sql