PG_FREE_IF_COPY() - Mailing list pgsql-hackers

From John Hansen
Subject PG_FREE_IF_COPY()
Date
Msg-id 5066E5A966339E42AA04BA10BA706AE50A9340@rodrick.geeknet.com.au
Whole thread Raw
Responses Re: PG_FREE_IF_COPY()
List pgsql-hackers
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 functions, you need to
PG_FREE_IF_COPY(?,?);

Which of the above parameters need I free?

tuple, or temp,.... Or both?

... John


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Gist Recovery testing
Next
From: Teodor Sigaev
Date:
Subject: Re: Gist Recovery testing