Alvaro Herrera <alvhe...@alvh.no-ip.org> writes: > Tom Lane wrote: >> I really think we should stick with the macro implementation, unless >> somebody wants to do some actual investigation to prove that a >> function implementation imposes negligible cost.
> I don't really care too much about the macro-or-function side of this, > but if you wanted to improve debuggability avoiding the performance cost > of a function call, you could use a static inline function, which is > supposed (AFAIK) to have performance characteristics equivalent to those > of a macro. I'm not sure whether inlining the function can be relied on to get rid of the side effects of taking rc's address. It wouldn't take all that much work to establish the point, probably, but it's work I don't care to put into it. regards, tom lane