Re: "cache reference leak" and "problem in alloc set" warnings

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: "cache reference leak" and "problem in alloc set" warnings
Date: 2006-08-18 14:48:36
Message-ID: 14498.1155912516@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr> writes:
> Looks like my palloc() math was correct. Just I had missed special
> handling of attnulls array passed to heap_formtuple(). It had should be

> attnulls[i] = (isnull) ? 'n' : ' ';

These days I'd use heap_form_tuple in new code --- then you can work
with plain bool isnull flags instead of that weird 'n'/' ' convention.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-08-18 15:10:30 Re: installcheck-parallel
Previous Message Albe Laurenz 2006-08-18 14:43:14 Re: BF Failure on Bandicoot