arguments are not toastable - Mailing list pgsql-general

From Nick Raj
Subject arguments are not toastable
Date
Msg-id BANLkTimNaaakXvn1NVcMFczdFZ3_pAMv0g@mail.gmail.com
Whole thread Raw
List pgsql-general
Hi,
I have defined some function and also used NDBOX structure that having variable length.

typedef struct NDBOX
{
    int32        vl_len_;        /* varlena length */
    unsigned int dim;
    double        x[1];
} NDBOX;

When i called my function, it gives NDBOX to be null
On debugging, i found out ,FunctionInvokeCall invokes fmgr_oldstyle function, for getting argument

if (fnextra->arg_toastable[i])    //this returns false, not able to get arguments
            fcinfo->arg[i] = PointerGetDatum(PG_DETOAST_DATUM(fcinfo->arg[i]));
    }

Why it is going into fmgr_oldstyle if the arguments is not toasted? "How to get arguments toastable??" and even my table pg_class.reltoastrelid entry is zero.


Thanks

pgsql-general by date:

Previous
From: Tarlika Elisabeth Schmitz
Date:
Subject: Re: Role for CSV import
Next
From: Sukuchha Shrestha
Date:
Subject: Remove Duplicate Words from a field