Re: [PATCH v1] plpython: Pair SPI_connect and SPI_finish in the same function

Поиск
Список
Период
Сортировка
Искать

Re: [PATCH v1] plpython: Pair SPI_connect and SPI_finish in the same function

От:
Xing Guo <higuoxing@gmail.com>
Дата:
Hi hackers,

I cleaned up one more obsolete comment about SPI_connect(). New patch
is attached.


Best Regards,
Xing







On Tue, Jul 14, 2026 at 4:52 PM Xing Guo  wrote:
>
> Hi hackers,
>
> While reading PL/Python's source code, I spotted that PL/Python's
> call_handler and inline_handler call SPI_connect_ext(), but
> SPI_finish() is called inside different execution functions in
> plpy_exec.c. It's easy to miss SPI_finish() call when adding a new
> execution path for PL/Python.
>
> I created a patch to move these SPI_finish() calls to pair with
> SPI_connect in the same function.
>
> Best Regards,
> Xing
FAQ