aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/advanced.source
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2020-04-27 13:04:35 -0400
committerRobert Haas <rhaas@postgresql.org>2020-04-27 14:00:36 -0400
commita08bfe7424929fcba4af9eb8ca80214eca47159a (patch)
tree5c2df7148b58d241403be353c6300f95a7e4dbb6 /src/tutorial/advanced.source
parent18f7e856cde4734b55844243e54dd8614efbd9eb (diff)
downloadpostgresql-a08bfe7424929fcba4af9eb8ca80214eca47159a.tar.gz
postgresql-a08bfe7424929fcba4af9eb8ca80214eca47159a.zip
Fix bogus tar-file padding logic for standby.signal.
When pg_basebackup -R is used, we inject standby.signal into the tar file for the main tablespace. The proper thing to do is to pad each file injected into the tar file out to a 512-byte boundary by appending nulls, but here the file is of length 0 and we add 511 zero bytes. Since 0 is already a multiple of 512, we should not add any zero bytes. Do that instead. Patch by me, reviewed by Tom Lane. Discussion: http://postgr.es/m/CA+TgmobWbfReO9-XFk8urR1K4wTNwqoHx_v56t7=T8KaiEoKNw@mail.gmail.com
Diffstat (limited to 'src/tutorial/advanced.source')
0 files changed, 0 insertions, 0 deletions