pgsql: Extend sendFileWithContent() to handle custom content length in

2023-11-12 Thread Michael Paquier
Extend sendFileWithContent() to handle custom content length in basebackup.c sendFileWithContent() previously got the content length by using strlen(), assuming that the content given is always a string. Some patches are under discussion to pass binary contents to a base backup stream, where an a

Re: pgsql: Extend sendFileWithContent() to handle custom content length in

2023-11-12 Thread Julien Rouhaud
Hi, On Sun, Nov 12, 2023 at 11:36:58PM +, Michael Paquier wrote: > Extend sendFileWithContent() to handle custom content length in basebackup.c > [...] > The patch extends sendFileWithContent() to be able to handle this case, > where len < 0 can be used to indicate an arbitrary length rather t

Re: pgsql: Extend sendFileWithContent() to handle custom content length in

2023-11-12 Thread Michael Paquier
On Mon, Nov 13, 2023 at 08:53:45AM +0800, Julien Rouhaud wrote: > Did you mean >= 0? Indeed, thanks. The commit message got that the opposite way. -- Michael signature.asc Description: PGP signature