pgsql: Remove read_archive_file()'s "count" parameter.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Remove read_archive_file()'s "count" parameter. |
| Дата | |
| Msg-id | E1w54RV-001G7p-02@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Remove read_archive_file()'s "count" parameter. Instead, always try to fill the allocated buffer completely. The previous coding apparently intended (though it's undocumented) to read only small amounts of data until we are able to identify the WAL segment size and begin filtering out unwanted segments. However this extra complication has no measurable value according to simple testing here, and it could easily be a net loss if there is a substantial amount of non-WAL data in the archive file before the first WAL file. Discussion: https://postgr.es/m/3341199.1774221191@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ca1f1ade3f64f53c5319ee2c7db71a669a38cc83 Modified Files -------------- src/bin/pg_waldump/archive_waldump.c | 27 +++++++++------------------ src/bin/pg_waldump/pg_waldump.h | 3 --- 2 files changed, 9 insertions(+), 21 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера