Re: ERROR: Memory exhausted in AllocSetAlloc(909324558)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ERROR: Memory exhausted in AllocSetAlloc(909324558)
Date: 2001-06-09 18:36:50
Message-ID: 12536.992111810@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

darcy(at)druid(dot)net (D'Arcy J.M. Cain) writes:
> Do I have to manually create a varlena? I'll try that next.

The best way to get from a C string to a valid datum is to invoke the
datatype's input conversion routine. If you know you want text,
you could do

#define _textin(str) DirectFunctionCall1(textin, CStringGetDatum(str))

to produce a datum from a C string.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 2001-06-09 18:42:36 Re: grant and SQL92
Previous Message D'Arcy J.M. Cain 2001-06-09 17:47:39 Re: ERROR: Memory exhausted in AllocSetAlloc(909324558)