Cedar Cox <cedarc@visionforisrael.com> writes:
> And I get this notice:
>>
> NOTICE: PortalHeapMemoryFree: 0x0x824a6e8 not in alloc set!
> NOTICE: Buffer Leak: [059] (freeNext=54, freePrev=58, relname=tblstsc1,
> blockNum=0, flags=0x14, refcount=-4 -1)
>>
> Ver 7.0.2 (sorry, I meant to include this... I think)
Okay, this is a known bug; it's fixed in 7.0.3. I'd advise staying away
from that sort of construct (sub-select in the output list of a SELECT
DISTINCT) until you update --- in some cases the consequences might be
worse than just an annoying NOTICE :-(.
regards, tom lane