Re: async problems?

From: Mark Harrison <mh(at)pixar(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: async problems?
Date: 2004-06-02 15:22:14
Message-ID: 40BDF0A6.8040307@pixar.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Mark Harrison <mh(at)pixar(dot)com> writes:
>
>> res = PQexec(conn,"DECLARE cur CURSOR FOR select * from assets limit 8888"); printf("PQexec declare %s\n", PQresStatus(PQresultStatus(res)));
>> PQclear(res);
>
>
>> rc = PQsendQuery(conn, fetchstr);
>> printf("PQsendQuery %d\n", rc);
>> PQclear(res);
>
>
> You just re-cleared an already cleared result. This probably caused a
> double free, corrupting malloc's datastructures. The later crash within
> malloc is not surprising...

Ah, everything's better now... Thanks very much!

Mark

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Schoen 2004-06-02 15:33:45 Re: ORDER BY with plpgsql parameter
Previous Message Patrick Hatcher 2004-06-02 15:20:07 Pg_dump error