From: | Nick Raj <nickrajjain(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | arguments are not toastable |
Date: | 2011-05-16 11:13:53 |
Message-ID: | BANLkTimNaaakXvn1NVcMFczdFZ3_pAMv0g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Sukuchha Shrestha | 2011-05-16 12:34:09 | Remove Duplicate Words from a field |
Previous Message | Tarlika Elisabeth Schmitz | 2011-05-16 08:33:13 | Re: Role for CSV import |