]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Avoid throwing away the error message in syncrep_yyerror.
authorRobert Haas <rhaas@postgresql.org>
Thu, 24 Jul 2025 17:30:43 +0000 (13:30 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 28 Jul 2025 14:35:05 +0000 (10:35 -0400)
commitdcc9820a3526eb8d89c5da75dad32b8ef4bf8545
tree7d6f3a589d4986f7b7ceb9e37ff9e0ee86103e3d
parent3151c264d460c0be09131ce90529073631d70ae8
Avoid throwing away the error message in syncrep_yyerror.

Commit 473a575e05979b4dbb28b3f2544f4ec8f184ce65 purported to make this
function stash the error message in *syncrep_parse_result_p, but
it didn't actually.

As a result, an attempt to set synchronous_standby_names to any value
that does not parse resulted in a generic "parser failed." message
rather than anything more specific. This fixes that.

Discussion: http://postgr.es/m/CA+TgmoYF9wPNZ-Q_EMfib_espgHycY-eX__6Tzo2GpYpVXqCdQ@mail.gmail.com
Backpatch-through: 18
src/backend/replication/syncrep_scanner.l