RE: ERROR: invalid memory alloc request size when committing transaction
От | Michael Harris |
---|---|
Тема | RE: ERROR: invalid memory alloc request size when committing transaction |
Дата | |
Msg-id | AM9PR07MB78441D7C44F7CDEDEA230FFEF3FC9@AM9PR07MB7844.eurprd07.prod.outlook.com обсуждение исходный текст |
Ответ на | ERROR: invalid memory alloc request size when committing transaction (Michael Harris <michael.harris@ericsson.com>) |
Список | pgsql-general |
Thanks Simon Setting wal_level to minimal has indeed allowed it to work. Thanks for the suggestion! We aren't easily able to change the number of partitions - it consists of a large number of partitioned tables each havinga reasonable number of partitions, but they multiply up to a huge number. Probably it needs to be broken into multiplesmaller databases, but that's easier said than done. Thanks again Cheers Mike -----Original Message----- From: Simon Riggs <simon.riggs@enterprisedb.com> Sent: Thursday, August 12, 2021 7:19 PM To: Michael Harris <michael.harris@ericsson.com> Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-general@lists.postgresql.org Subject: Re: ERROR: invalid memory alloc request size when committing transaction On Thu, 12 Aug 2021 at 06:42, Michael Harris <michael.harris@ericsson.com> wrote: > > Thanks Tom, > > > How many is "a large number"? > > 377k approx. I'm going to guess that it is the invalidation messages for all the DDL that is causing the memory allocation error. If youset wal_level = minimal then this might work. The total number indicates you are using too many partitions and should probably lower that by a factor of about 100. If you do that, you probably won't need to set wal_level. -- Simon Riggs http://www.EnterpriseDB.com/
В списке pgsql-general по дате отправления: