Re: proposal: plpgsql: special comments that will be part of AST - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal: plpgsql: special comments that will be part of AST
Date
Msg-id CAFj8pRBgeWu7XreTHT4vTiUFrMrLJMOuy=r0f2N1gbiXfCwtvw@mail.gmail.com
Whole thread Raw
In response to proposal: plpgsql: special comments that will be part of AST  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [PROPOSAL] new diagnostic items for the dynamic sql
Next
From: Tom Lane
Date:
Subject: Re: Rename of triggers for partitioned tables