aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayutils.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-11-13 08:26:44 +0900
committerMichael Paquier <michael@paquier.xyz>2023-11-13 08:26:44 +0900
commit7606175991f8ed5ae36eecf6951cb89dcfb2156e (patch)
tree18983698d07a9ba6728d45f43ec132bb534c0d14 /src/backend/utils/adt/arrayutils.c
parent23c8c0c8f4721db693ef908c22f7cf754e6852a9 (diff)
downloadpostgresql-7606175991f8ed5ae36eecf6951cb89dcfb2156e.tar.gz
postgresql-7606175991f8ed5ae36eecf6951cb89dcfb2156e.zip
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 arbitrary length needs to be given by the caller instead. The patch extends sendFileWithContent() to be able to handle this case, where len < 0 can be used to indicate an arbitrary length rather than rely on strlen() for the content length. A comment in sendFileWithContent() mentioned the backup_label file. However, this routine is used by more file types, like the tablespace map, so adjust it in passing. Author: David Steele Discussion: https://postgr.es/m/2daf8adc-8db7-4204-a7f2-a7e94e2bfa4b@pgmasters.net
Diffstat (limited to 'src/backend/utils/adt/arrayutils.c')
0 files changed, 0 insertions, 0 deletions