Re: allowing multiple PQclear() calls

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: allowing multiple PQclear() calls
Дата
Msg-id CA+U5nML4jNyCGMfXZJ94p7NBxQkVsVL+LrWeS26dd1rVNboPxQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: allowing multiple PQclear() calls  (Boszormenyi Zoltan <zb@cybertec.at>)
Ответы Re: allowing multiple PQclear() calls
Список pgsql-hackers
On 11 December 2012 12:18, Boszormenyi Zoltan <zb@cybertec.at> wrote:

>>> Such mechanism already exist - you just need to set
>>> your PGresult pointer to NULL after each PQclear().
>>
>> So why doesn't PQclear() do that?
>
>
> Because then PQclear() would need a ** not a *. Do you want its
> interface changed for 9.3 and break compatibility with previous versions?

No, but we should introduce a new public API call that is safer,
otherwise we get people continually re-inventing new private APIs that
Do the Right Thing, as the two other respondents have shown.

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ibrar Ahmed
Дата:
Сообщение: Re: Review: create extension default_full_version
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Commits 8de72b and 5457a1 (COPY FREEZE)