From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Let's get rid of SPI_push/SPI_pop
Date: Mon, 07 Nov 2016 09:47:28 -0500
Message-ID: <16696.1478530048@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFj8pRBXFKsM9z795KTgepLs-7F8+0zMw2-ZUVxh9Zd8=vdf7g@mail.gmail.com>
References: <20808.1478481403@sss.pgh.pa.us>
<CAFj8pRBXFKsM9z795KTgepLs-7F8+0zMw2-ZUVxh9Zd8=vdf7g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Pavel Stehule <pavel.stehule@gmail.com> writes:
> 2016-11-07 2:16 GMT+01:00 Tom Lane <tgl@sss.pgh.pa.us>:
>> So I think we should just delete these functions and adjust SPI_connect
>> and SPI_finish so that they just push/pop a context level unconditionally.
>> (Which will make them simpler, not more complicated.)
> cannot be there some performance impacts?
Any impact will be for the better, since we're removing logic.
I haven't gone through it in detail, but it might be as simple
as removing _SPI_curid and code that manipulates it.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, pavel.stehule@gmail.com
Subject: Re: Let's get rid of SPI_push/SPI_pop
In-Reply-To: <16696.1478530048@sss.pgh.pa.us>
References: <20808.1478481403@sss.pgh.pa.us> <CAFj8pRBXFKsM9z795KTgepLs-7F8+0zMw2-ZUVxh9Zd8=vdf7g@mail.gmail.com> <16696.1478530048@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox