Re: async problems?
От
Tom Lane
Тема
Re: async problems?
Дата
Msg-id
17767.1086132932@sss.pgh.pa.us
Ответ на
async problems? (Mark Harrison)
Список
Дерево обсуждения
async problems? Mark Harrison <mh@pixar.com>
Re: async problems? Tom Lane <tgl@sss.pgh.pa.us>
Re: async problems? Mark Harrison <mh@pixar.com>
Mark Harrison 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...
regards, tom lane
В списке pgsql-general по дате отправления