Re: Segfault using heap_form_tuple

From: "Pavan Deolasee" <pavan(dot)deolasee(at)gmail(dot)com>
To: "Claudio Rossi" <wind(dot)claudio(at)inwind(dot)it>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Segfault using heap_form_tuple
Date: 2008-04-09 17:27:09
Message-ID: 2e78013d0804091027oe22ed65ka6b8baac81078894@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Apr 9, 2008 at 10:48 PM, Claudio Rossi <wind(dot)claudio(at)inwind(dot)it> wrote:

> nulls = (bool *)palloc(natts*sizeof(bool *));
>

May not be related to segfault you are seeing, but this looks completely wrong.
You want array of bool and not (bool *).

Thanks,
Pavan

--
Pavan Deolasee
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-04-09 17:27:57 Re: Concurrent psql API
Previous Message Claudio Rossi 2008-04-09 17:18:14 Segfault using heap_form_tuple