Re: appendBinaryStringInfo stuff

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: appendBinaryStringInfo stuff
Date: 2022-12-20 21:05:05
Message-ID: CAApHDvrrFNSm8dF24tmYOZpvo-R5ZP+0FoqVo2XcYhRftehoRQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 21 Dec 2022 at 04:47, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> jsonb.c: appendBinaryStringInfo(out, " ", 4);
>
> None of these really bother me much, TBH. In fact the last one is
> arguably nicer because it tells you without counting how many spaces
> there are.

appendStringInfoSpaces() might be even better.

David

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Corey Huinker 2022-12-20 21:32:45 Re: Common function for percent placeholder replacement
Previous Message Robert Haas 2022-12-20 20:39:26 Re: Minimal logical decoding on standbys