pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Avoid throwing away the error message in syncrep_yyerror.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Avoid throwing away the error message in syncrep_yyerror.
@ 2025-07-28 15:02 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2025-07-28 15:02 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/dcc9820a3526eb8d89c5da75dad32b8ef4bf8545

Modified Files
--------------
src/backend/replication/syncrep_scanner.l | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Avoid throwing away the error message in syncrep_yyerror.
@ 2025-07-28 15:02 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2025-07-28 15:02 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/44e135ad57b242a89266b0aebaaf523a01a3484c

Modified Files
--------------
src/backend/replication/syncrep_scanner.l | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-07-28 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-07-28 15:02 pgsql: Avoid throwing away the error message in syncrep_yyerror. Robert Haas <rhaas@postgresql.org>
2025-07-28 15:02 pgsql: Avoid throwing away the error message in syncrep_yyerror. Robert Haas <rhaas@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox