Re: Trouble Upgrading Postgres

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Trouble Upgrading Postgres
Дата
Msg-id 2293f666-c8f7-52d4-14fc-8e27630aac14@aklaver.com
обсуждение исходный текст
Ответ на Re: Trouble Upgrading Postgres  (Charles Martin <ssappeals@gmail.com>)
Список pgsql-general
On 11/5/18 8:50 AM, Charles Martin wrote:
> Daniel said:
> 

> This appears to be the case. I ran:
> 
> SELECT max(length(docfilecontents::text)) FROM docfile;
>   and after a very long time, got:
> ERROR: invalid memory alloc request size 1636085512 SQL state: XX000
> 
> Adrian said:
>>> Ok, thanks for explaining this. Here is the current value:
>>> "shared_buffers""131072""8kB"
>  >It should be a single value something like this for the default:
>  >shared_buffers = 128MB
> 
> The results I pasted were from:
> 
> SELECT * FROM pg_settings
> 
> Maybe I didn't get it the right way.
> 
> The system has only 4GB of RAM. I read that a reasonable swap size is 
> 1/4 of RAM, so I've created a swap file of 1GB.

I would change the shared_buffers setting to 128MB and retry.





-- 
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Aleš Zelený
Дата:
Сообщение: Re: Logical replication hangs up.
Следующее
От: Ron
Дата:
Сообщение: CREATE OR REPLACE FUNCTION statement just sitting there