Re: MemoryContextAlloc: invalid request size 1969649011 - Mailing list pgsql-novice

From Tom Lane
Subject Re: MemoryContextAlloc: invalid request size 1969649011
Date
Msg-id 28659.1028773505@sss.pgh.pa.us
Whole thread Raw
In response to MemoryContextAlloc: invalid request size 1969649011  ("Thilo Hille" <thilo@resourcery.de>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Permissions problem on new install
Next
From: Tom Lane
Date:
Subject: Re: Effective limit on size of text type?