postgresql/src/backend
Tom Lane 3c06ec6d14 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
2022-01-24 12:09:46 -05:00
..
access fsync pg_logical/mappings in CheckPointLogicalRewriteHeap(). 2022-01-21 11:22:55 -08:00
bootstrap pg_upgrade: Preserve relfilenodes and tablespace OIDs. 2022-01-17 13:40:27 -05:00
catalog Flush table's relcache during ALTER TABLE ADD PRIMARY KEY USING INDEX. 2022-01-22 13:32:40 -05:00
commands Check syscache result in AlterStatistics 2022-01-23 03:16:31 +01:00
executor Fix memory leak in indexUnchanged hint mechanism. 2022-01-12 15:41:04 -08:00
foreign Update copyright for 2022 2022-01-07 19:04:57 -05:00
jit Update copyright for 2022 2022-01-07 19:04:57 -05:00
lib Update copyright for 2022 2022-01-07 19:04:57 -05:00
libpq Improve error handling of HMAC computations 2022-01-13 16:17:21 +09:00
main Update copyright for 2022 2022-01-07 19:04:57 -05:00
nodes Fix for new Boolean node 2022-01-17 13:59:46 +01:00
optimizer Suppress variable-set-but-not-used warning from clang 13. 2022-01-23 11:09:00 -05:00
parser Add Boolean node 2022-01-17 10:38:23 +01:00
partitioning Update copyright for 2022 2022-01-07 19:04:57 -05:00
po Translation updates 2021-06-21 12:33:50 +02:00
port Update copyright for 2022 2022-01-07 19:04:57 -05:00
postmaster Introduce log_destination=jsonlog 2022-01-17 10:16:53 +09:00
regex Call pg_newlocale_from_collation() also with default collation 2022-01-20 09:50:18 +01:00
replication Remember to reset yy_start state when firing up repl_scanner.l. 2022-01-24 12:09:46 -05:00
rewrite Update copyright for 2022 2022-01-07 19:04:57 -05:00
snowball Update copyright for 2022 2022-01-07 19:04:57 -05:00
statistics Add stxdinherit flag to pg_statistic_ext_data 2022-01-16 13:38:01 +01:00
storage Consistently use the function name CreateCheckPoint in code and comments. 2022-01-17 07:50:00 +05:30
tcop Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsearch Update copyright for 2022 2022-01-07 19:04:57 -05:00
utils Support base backup targets. 2022-01-20 10:46:33 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00
nls.mk Report progress of startup operations that take a long time. 2021-10-25 11:51:57 -04:00