Re: ERROR: Memory exhausted in AllocSetAlloc(909324558) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ERROR: Memory exhausted in AllocSetAlloc(909324558)
Date
Msg-id 16029.992046028@sss.pgh.pa.us
Whole thread Raw
In response to Re: ERROR: Memory exhausted in AllocSetAlloc(909324558)  (darcy@druid.net (D'Arcy J.M. Cain))
Responses Re: ERROR: Memory exhausted in AllocSetAlloc(909324558)  (darcy@druid.net (D'Arcy J.M. Cain))
List pgsql-hackers
darcy@druid.net (D'Arcy J.M. Cain) writes:
>> heap_formtuple is for constructing a tuple from scratch.  It sounds like
>> you should be using heap_modifytuple instead.

> But I am using SPI_modifytuple().  The rest came from tracing that
> function.

Hm.  Looks like the author of SPI_modifytuple didn't realize he could
use heap_modifytuple :-(.  But he is correctly extracting the old data.
I don't see anything wrong there, assuming that you are passing a
relation descriptor that matches the original tuple.
        regards, tom lane


pgsql-hackers by date:

Previous
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: Re: ERROR: Memory exhausted in AllocSetAlloc(909324558)
Next
From: "Joe Conway"
Date:
Subject: Re: Re: [PATCHES] Fw: Isn't pg_statistic a security hole - Solution Proposal