invalid memory alloc request size Error

Поиск
Список
Период
Сортировка
От Roland Che
Тема invalid memory alloc request size Error
Дата
Msg-id CAKnNPjwYYijsh9v17_OtDzBHtgMRbffvZjZFk1MnT+J2gbTezg@mail.gmail.com
обсуждение исходный текст
Ответы Re: invalid memory alloc request size Error  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Hello All,

I am having below error when our ANALYZE script runs. Our maintenance
work_mem is set to 128M but when this analyze script is ran, the
maintenance work_mem is set to session level at 2G but we are still
getting the error on some table columns.

ERROR: invalid memory alloc request size 8589934668.


I saw a past dba had to disabled statistics by setting the statistics
value to 0 meaning stats will not be updated on such table columns. He
used these two commands to solve the error which kind of shows if
queries use those columns, like it will be slow as stats will not be
updated .


 ALTER COLUMN position SET STATISTICS 0;

ALTER COLUMN position SET STORAGE EXTENDED;

Please can anyone advise on how to go about this error?
cpu 8
Ram 32 on that server.

Regards
Roland



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

Предыдущее
От: Valerio Battaglia
Дата:
Сообщение: Re: How to get column, table or parameter name reporting when violating DOMAIN type constraint
Следующее
От: Tom Lane
Дата:
Сообщение: Re: invalid memory alloc request size Error