Re: Simplify code building the LR conflict messages
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Smith <smithpb2250@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-11-28T02:49:18Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Improve errdetail for logical replication conflict messages.
- 48efefa6caac 19 (unreleased) landed
Peter Smith <smithpb2250@gmail.com> writes: > I couldn't think of a reason why the "; " string needed to be > separated from the rest of the message like that. And when you combine > the strings, the logic easily collapses into a single statement with > less code and greater readability. ... and, probably, less ability of the compiler to verify that the variadic arguments match the format string. I think you've taken this a bit too far. regards, tom lane