Re: Proposal: add new API to stringinfo

Gurjeet Singh <gurjeet@singh.im>

From: Gurjeet Singh <gurjeet@singh.im>
To: Tatsuo Ishii <ishii@postgresql.org>
Cc: michael@paquier.xyz, dgrowleyml@gmail.com, pgsql-hackers@postgresql.org
Date: 2025-01-03T22:55:04Z
Lists: pgsql-hackers
On Fri, Dec 27, 2024 at 9:46 PM Tatsuo Ishii <ishii@postgresql.org> wrote:
>
>
> With opinions from Michael and David , what about following additional APIs?
...
> #define makeStringInfo          makeStringInfoExtended(STRINGINFO_DEFAULT_SIZE)

Minor nit: the definition of the macro should contain parentheses, like so:

#define makeStringInfo()   ....

Best regards,
Gurjeet
http://Gurje.et



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Add new StringInfo APIs to allow callers to specify the buffer size.