Re: Insert fail: could not open relation with OID 3221204992 - Mailing list pgsql-general

From araza@esri.com
Subject Re: Insert fail: could not open relation with OID 3221204992
Date
Msg-id 7CAD6D9B7D16BC4A88795771E486508205437EDF@pianowire.esri.com
Whole thread Raw
In response to Re: Insert fail: could not open relation with OID 3221204992  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
" ...StringInfos aren't a toastable datatype....."

Ok, thanks. This was the issue. Now, I can load all data.

Ale.

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Monday, March 26, 2007 6:26 PM
To: Ale Raza
Cc: postgresql-general
Subject: Re: [GENERAL] Insert fail: could not open relation with OID
3221204992

"Ale Raza" <araza@esri.com> writes:
> Same results with -O0 option.

Hmmm ... I guess I should have stopped to read the code a little closer:

>> Breakpoint 1, ST_Geometry_Recv (fcinfo=0xbfffcb90) at binary.c:138
>> 138             StringInfo src_buf = (StringInfo)
> PG_DETOAST_DATUM(PG_GETARG_DATUM(0));

Where did you get that from?  Receive functions are supposed to do this:

    StringInfo    buf = (StringInfo) PG_GETARG_POINTER(0);

StringInfos aren't a toastable datatype.  The loss of control probably
represents the toast code throwing an error ...

            regards, tom lane


pgsql-general by date:

Previous
From: Chris Browne
Date:
Subject: Re: Is there a shortage of postgresql skilled ops people
Next
From: Tom Lane
Date:
Subject: Re: redhat debug info