pg_restore error message during ENOSPC with largeobj

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема pg_restore error message during ENOSPC with largeobj
Дата
Msg-id 20201018010232.GF9241@telsasoft.com
обсуждение исходный текст
Ответы Re: pg_restore error message during ENOSPC with largeobj  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I overflowed my homedir while testing with pg_reload, and got:
|pg_restore: error: could not write to large object (result: 18446744073709551615, expected: 30)

src/bin/pg_dump/pg_backup_archiver.c

       f (res != AH->lo_buf_used)
            fatal("could not write to large object (result: %lu, expected: %lu)",
                  (unsigned long) res, (unsigned long) AH->lo_buf_used);


; 18446744073709551615 - 1<<64
        -1

I guess casting to long was the best option c. 2002 (commit 6faf8024f) but I
gather the modern way is with %z.

I confirmed this fixes the message.
|pg_restore: error: could not write to large object (result: -1, expected: 16384)


-- 
Justin

Вложения

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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: jit and explain nontext
Следующее
От: "Hou, Zhijie"
Дата:
Сообщение: RE: Parallel copy