Re: Problem with dblink

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Problem with dblink
Дата
Msg-id 3FC51126.3050102@joeconway.com
обсуждение исходный текст
Ответ на Re: Problem with dblink  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Problem with dblink  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> Looks right to me; but as a general tip, if you've made mistake X in
> place A, you might have made it in place B too.  Have you checked the
> rest of dblink for forgotten SPI_finish calls?

That function was the only one using SPI calls in dblink, so there were
no others. Fix applied to head, 7.3 stable, and 7.4 stable.

> (More generally, I wonder if AtEOXact_SPI oughtn't be fixed to emit
> a WARNING if the SPI stack isn't empty, except in the error case.
> Neglecting SPI_finish is analogous to a resource leak, and we have
> code in place to warn about other sorts of leaks.)

I'll look at this separately. Changes in this regard only belong applied
to cvs head I assume.

Joe


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

Предыдущее
От: Serguei Mokhov
Дата:
Сообщение: Re: postgress-ru.po - further translation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem with dblink