pgsql: Remember to reset yy_start state when firing up repl_scanner.l.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Remember to reset yy_start state when firing up repl_scanner.l.
Дата
Msg-id E1nC2r2-0006uM-A2@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remember to reset yy_start state when firing up repl_scanner.l.

Without this, we get odd behavior when the previous cycle of
lexing exited in a non-default exclusive state.  Every other
copy of this code is aware that it has to do BEGIN(INITIAL),
but repl_scanner.l did not get that memo.

The real-world impact of this is probably limited, since most
replication clients would abandon their connection after getting
a syntax error.  Still, it's a bug.

This mistake is old, so back-patch to all supported branches.

Discussion: https://postgr.es/m/1874781.1643035952@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/449a696236ff6d8a86b98ae6503aa51dc39a37b2

Modified Files
--------------
src/backend/replication/repl_scanner.l | 3 +++
1 file changed, 3 insertions(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Temporarily add some information about python include paths to c
Следующее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Unbreak pg_basebackup/t/010_pg_basebackup.pl on msys