Re: [HACKERS] PG_FREE_IF_COPY()

2005-06-14 Thread John Hansen
Tom Lane [mailto:[EMAIL PROTECTED] wrote: > "John Hansen" <[EMAIL PROTECTED]> writes: > > Given the following snippet: > > HeapTupleHeader tuple; > > Datum temp; > > bool isnull; > > > tuple = PG_GETARG_HEAPTUPLEHEADER(0); > > temp

Re: [HACKERS] PG_FREE_IF_COPY()

2005-06-14 Thread Tom Lane
"John Hansen" <[EMAIL PROTECTED]> writes: > Given the following snippet: > HeapTupleHeader tuple; > Datum temp; > bool isnull; > tuple = PG_GETARG_HEAPTUPLEHEADER(0); > temp = GetAttributeByName(tuple, "data", &isnull);

[HACKERS] PG_FREE_IF_COPY()

2005-06-14 Thread John Hansen
Given the following snippet: HeapTupleHeader tuple; Datum temp; bool isnull; tuple = PG_GETARG_HEAPTUPLEHEADER(0); temp = GetAttributeByName(tuple, "data", &isnull); When using this for a btree operator func