Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3lEQ-0005Ll-S6 for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Nov 2016 14:49:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c3lEQ-0008J2-Et for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Nov 2016 14:49:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c3lD3-0006T9-8v for pgsql-hackers@postgresql.org; Mon, 07 Nov 2016 14:47:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c3lCs-0006d4-Pr for pgsql-hackers@postgresql.org; Mon, 07 Nov 2016 14:47:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uA7ElSmL016697; Mon, 7 Nov 2016 09:47:28 -0500 From: Tom Lane To: Pavel Stehule cc: PostgreSQL Hackers Subject: Re: Let's get rid of SPI_push/SPI_pop In-reply-to: References: <20808.1478481403@sss.pgh.pa.us> Comments: In-reply-to Pavel Stehule message dated "Mon, 07 Nov 2016 05:43:22 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16695.1478530048.1@sss.pgh.pa.us> Date: Mon, 07 Nov 2016 09:47:28 -0500 Message-ID: <16696.1478530048@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Pavel Stehule writes: > 2016-11-07 2:16 GMT+01:00 Tom Lane : >> 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