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

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: proposal: plpgsql: special comments that will be part of AST
Дата
Msg-id CAFj8pRBgeWu7XreTHT4vTiUFrMrLJMOuy=r0f2N1gbiXfCwtvw@mail.gmail.com
обсуждение исходный текст
Ответ на proposal: plpgsql: special comments that will be part of AST  (Pavel Stehule <pavel.stehule@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [PROPOSAL] new diagnostic items for the dynamic sql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Rename of triggers for partitioned tables