| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Status report: long-query-string changes |
| Дата | |
| Msg-id | 9815.937234399@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [HACKERS] Status report: long-query-string changes (Leon <leon@udmnet.ru>) |
| Список | pgsql-hackers |
Leon <leon@udmnet.ru> writes:
>> A simple fix would be to check the current size after lexing of that
>> accumulated string buffer, and if it is non-zero then elog(ERROR) a
>> complaint. Perhaps a more general fix would be to ensure that you are
>> never in an exclusive state after all tokens are processed, but I'm
>> not sure how to do that.
> The solution is obvious - to eliminate exclusive states entirely!
> Banzai!!!
Can we do that? Seems like a more likely approach is to ensure that
all of the lexer states have rules that ensure they terminate (or
raise an error, as for unterminated quoted string) at end of input.
I do think checking the token buffer is a hack, and changing the rules
a cleaner solution...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера