Search Postgresql Archives

arguments are not toastable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux