PG_FREE_IF_COPY()

From: "John Hansen" <john(at)geeknet(dot)com(dot)au>
To: "Pgsql Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: PG_FREE_IF_COPY()
Date: 2005-06-14 13:49:17
Message-ID: 5066E5A966339E42AA04BA10BA706AE50A9340@rodrick.geeknet.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2005-06-14 14:01:33 Re: Gist Recovery testing
Previous Message Tom Lane 2005-06-14 13:26:43 Re: Gist Recovery testing