Re: [HACKERS] DETOAST Datum

2011-05-16 Thread Nick Raj
On Mon, May 16, 2011 at 7:52 PM, Tom Lane wrote: > Robert Haas writes: > > On Mon, May 16, 2011 at 3:41 AM, Nick Raj 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 inf

Re: [HACKERS] DETOAST Datum

2011-05-16 Thread Tom Lane
Robert Haas writes: > On Mon, May 16, 2011 at 3:41 AM, Nick Raj 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 y

Re: [HACKERS] DETOAST Datum

2011-05-16 Thread Robert Haas
On Mon, May 16, 2011 at 3:41 AM, Nick Raj wrote: > 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 >  

[HACKERS] DETOAST Datum

2011-05-16 Thread Nick Raj
Hi, I have defined some function and also used NDBOX structure that having variable length. typedef struct NDBOX { int32vl_len_;/* varlena length */ unsigned int dim; doublex[1]; } NDBOX; When i called my function, it gives NDBOX to be null On debugging, i foun