Re: MemoryContextAlloc: invalid request size 1969649011

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: MemoryContextAlloc: invalid request size 1969649011
Дата
Msg-id 28659.1028773505@sss.pgh.pa.us
обсуждение исходный текст
Ответ на MemoryContextAlloc: invalid request size 1969649011  ("Thilo Hille" <thilo@resourcery.de>)
Список pgsql-novice
"Thilo Hille" <thilo@resourcery.de> writes:
> this query...:

> my $tsql = qq{ insert into  user_month (select '$currentmonth'::date as
> month,'*nopleid*',count(distinct uuid) from user_log where day<=now()::date
> and day>(now()-interval '30 days')::date) };
> my $tsth = $tdbh->prepare( $tsql );
> $tsth->execute();

> sometimes drops this error:
> DBD::Pg::st execute failed: ERROR:  MemoryContextAlloc: invalid request size
> 1969649011

This looks to me like a corrupted-data issue --- specifically, the
length word of some data value in the table has gotten clobbered and
now appears ridiculously large.

You should try to determine exactly which row(s) contain bad data.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Permissions problem on new install
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Effective limit on size of text type?