| От | Tom Lane |
|---|---|
| Тема | Re: "ERROR: out of memory" during pg_restore |
| Дата | |
| Msg-id | 10772.1146011986@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | "ERROR: out of memory" during pg_restore (Wayne Conrad <wconrad@yagni.com>) |
| Ответы |
Re: "ERROR: out of memory" during pg_restore
|
| Список | pgsql-general |
Wayne Conrad <wconrad@yagni.com> writes:
> I've got a 7.4 database that gives postgres an "out of memory" error
> when restoring into a 32-bit build 8.1, yet restores into a 64-bit
> build of 8.1.
> Filesystem: -1367351296 total in 361 blocks; 34704 free (305 chunks); -1367386000 used
Now that I look at it, it's pretty obvious that the backend's
large-object functions all risk leaking memory that won't be recovered
till end of transaction. I'm not sure why this wasn't noticed before
... maybe the potential leaks were only potential, or something else
changed about the usage pattern. Anyway, it clearly needs to be fixed
to avoid problems when a single transaction executes a whole lot of
large-object operations. I've applied the attached patch to 8.1.*,
but it could use more testing --- do you want to patch locally and
confirm it's OK for you?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера