| From: | Xing Guo <higuoxing(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: [PATCH v1] plpython: Pair SPI_connect and SPI_finish in the same function |
| Date: | 2026-07-16 13:52:38 |
| Message-ID: | CACpMh+CZEd5wSbjQmOFE6epvc+7DAgVBOtGh6kxdbhOtxf7CBw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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 <higuoxing(at)gmail(dot)com> 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
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-plpython-pair-SPI_connect-and-SPI_finish-in-the-s.patch | text/x-patch | 4.4 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tomas Vondra | 2026-07-16 14:00:22 | Re: PGLZ Compression Optimization |
| Previous Message | ayoub.kazar | 2026-07-16 13:47:37 | Re: [PATCH] Rewrite undirected edge patterns in GRAPH_TABLE using UNION ALL |