Re: pg_restore error message during ENOSPC with largeobj
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pg_restore error message during ENOSPC with largeobj |
| Дата | |
| Msg-id | 153809.1602988903@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | pg_restore error message during ENOSPC with largeobj (Justin Pryzby <pryzby@telsasoft.com>) |
| Ответы |
Re: pg_restore error message during ENOSPC with largeobj
|
| Список | pgsql-hackers |
Justin Pryzby <pryzby@telsasoft.com> writes:
> I overflowed my homedir while testing with pg_reload, and got:
> |pg_restore: error: could not write to large object (result: 18446744073709551615, expected: 30)
Bleah.
> I guess casting to long was the best option c. 2002 (commit 6faf8024f) but I
> gather the modern way is with %z.
Isn't the real problem that lo_write returns int, not size_t?
AFAICT, every other call site stores the result in an int,
it's just this one that's out in left field.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера