Re: Avoid resource leak (src/bin/pg_dump/pg_dumpall.c)
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: yangyz <1197620467@qq.com>, Chao Li <li.evan.chao@gmail.com>, Ranier Vilela <ranier.vf@gmail.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2026-03-10T03:05:40Z
Lists: pgsql-hackers
On Mon, Mar 09, 2026 at 01:40:51PM +0100, Alvaro Herrera wrote: > True, but at the same time it looks as if this routine is wastefully > written -- I mean, why spend time with a stringinfo here at all? We > could write this in much simpler form, as in the attached, which is even > three lines shorter. In fact, before 763aaa06f034, this is exactly how > this routine was written, and I don't see why it was changed this way. Yeah, what you are doing here looks like the sensible thing to do. -- Michael
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
pg_dumpall: simplify coding of dropDBs()
- a198c26dede5 19 (unreleased) landed