Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avFhf-00042b-QO for pgsql-committers@arkaria.postgresql.org; Wed, 27 Apr 2016 02:59:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avFhf-0003xe-Bi for pgsql-committers@arkaria.postgresql.org; Wed, 27 Apr 2016 02:59:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1avFhe-0003xH-RC for pgsql-committers@postgresql.org; Wed, 27 Apr 2016 02:59:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1avFhb-0007dG-PC for pgsql-committers@postgresql.org; Wed, 27 Apr 2016 02:59:50 +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 u3R2xicr005394; Tue, 26 Apr 2016 22:59:44 -0400 From: Tom Lane To: Andres Freund cc: Noah Misch , pgsql-committers@postgresql.org Subject: Re: Re: pgsql: Convert contrib/seg's bool-returning SQL functions to V1 call co In-reply-to: <20160427024415.6mv2dtyifpkv7g6v@alap3.anarazel.de> References: <20160427023828.GA2150695@tornado.leadboat.com> <20160427024415.6mv2dtyifpkv7g6v@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 26 Apr 2016 19:44:15 -0700" Date: Tue, 26 Apr 2016 22:59:44 -0400 Message-ID: <5393.1461725984@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andres Freund writes: > I don't understand why we don't just drop V0. It makes debugging harder, > exploitation easier (call arbitrary functions), and really has no > features making it desirable. What's the argument that it makes debugging harder? Especially if you aren't using it? I don't particularly buy the "easier exploitation" argument, either. You can't create a C function without superuser, and if you've got superuser there are plenty of ways to run arbitrary code. I'd agree that there are no desirable features that would motivate writing new code in V0. But that's not the reason for keeping it; the reason for keeping it is to avoid unnecessarily breaking existing extension code. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers