| От | Tomas Vondra |
|---|---|
| Тема | Re: Add LZ4 compression in pg_dump |
| Дата | |
| Msg-id | f735df01-0bb4-2fbc-1297-73a520cfc534@enterprisedb.com обсуждение исходный текст |
| Ответ на | Re: Add LZ4 compression in pg_dump (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Add LZ4 compression in pg_dump
|
| Список | pgsql-hackers |
On 5/8/23 03:16, Tom Lane wrote: > I wrote: >> Michael Paquier <michael@paquier.xyz> writes: >>> While testing this patch, I have triggered an error pointing out that >>> the decompression path of LZ4 is broken for table data. I can >>> reproduce that with a dump of the regression database, as of: >>> make installcheck >>> pg_dump --format=d --file=dump_lz4 --compress=lz4 regression > >> Ugh. Reproduced here ... so we need an open item for this. > > BTW, it seems to work with --format=c. > The LZ4Stream_write() forgot to move the pointer to the next chunk, so it was happily decompressing the initial chunk over and over. A bit embarrassing oversight :-( The custom format calls WriteDataToArchiveLZ4(), which was correct. The attached patch fixes this for me. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера