pgsql: Fix bogus tar-file padding logic for standby.signal.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Fix bogus tar-file padding logic for standby.signal.
Дата
Msg-id E1jT8A4-0002DE-NP@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0278d3f79a30cd9ccd6646b8447b25c60ae7d01d

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix full text search to handle NOT above a phrase search correct
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Add more TAP coverage for archive status with crash recovery of