Re: DETOAST Datum - Mailing list pgsql-hackers

From Tom Lane
Subject Re: DETOAST Datum
Date
Msg-id 15275.1305555726@sss.pgh.pa.us
Whole thread Raw
In response to Re: DETOAST Datum  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: DETOAST Datum  (Nick Raj <nickrajjain@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, May 16, 2011 at 3:41 AM, Nick Raj <nickrajjain@gmail.com> wrote:
>> "How to get arguments toastable??" and even my table pg_class.reltoastrelid
>> entry is zero.

> It's pretty hard to guess what's going wrong here from the information
> you've provided.  But reltoastid should not be 0 if you're using a
> variable-length data type.

It could be if the type is not marked toastable (ie, has storage class
PLAIN, which I think is the default even for varlena types).

But in any case I suspect that 90% of the problem here is an incorrect
declaration of the *function* not the type.  We haven't seen the C
function declaration, nor the SQL CREATE FUNCTION command, but if it's
going through fmgr_oldstyle then there isn't a PG_FUNCTION_INFO_V1
marker, which maybe is the problem.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: DETOAST Datum
Next
From: Tom Lane
Date:
Subject: Re: Extensions in schemas