Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avFlx-0004En-4I for pgsql-committers@arkaria.postgresql.org; Wed, 27 Apr 2016 03:04:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avFlw-0006UJ-NC for pgsql-committers@arkaria.postgresql.org; Wed, 27 Apr 2016 03:04:16 +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 1avFlw-0006Tv-60 for pgsql-committers@postgresql.org; Wed, 27 Apr 2016 03:04:16 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1avFlt-0007kH-BX for pgsql-committers@postgresql.org; Wed, 27 Apr 2016 03:04:15 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 43465204F1 for ; Tue, 26 Apr 2016 23:04:12 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 26 Apr 2016 23:04:12 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=AM/ZTlRzGQgG1OB6axBoByMJsK8=; b=amvQS +Gk3KjaGjig3cMrAIDqwa6vJOF3sMRBm/qnfPQomXwJS25DYCx8xmCnG59gle8Rh VQWwmFrMUbn+hU2WNYjylCHTgg2r9hxw683bSa2NYFR1RGF8WF02ugEJnWSISV73 NwLu9IPSYe+nHiuO1nR3rYZguUDw4EzxfimZTw= X-Sasl-enc: i/vmmIyilfREq/GFI3omvNuQBmxWdcmQE/WQ7zzZZWbJ 1461726251 Received: from intern.anarazel.de (unknown [192.77.237.104]) by mail.messagingengine.com (Postfix) with ESMTPA id EAE91680171; Tue, 26 Apr 2016 23:04:11 -0400 (EDT) Date: Tue, 26 Apr 2016 20:04:11 -0700 From: Andres Freund To: Tom Lane Cc: Noah Misch , pgsql-committers@postgresql.org Subject: Re: Re: pgsql: Convert contrib/seg's bool-returning SQL functions to V1 call co Message-ID: <20160427030411.hjod6bja6pjnmlab@alap3.anarazel.de> References: <20160427023828.GA2150695@tornado.leadboat.com> <20160427024415.6mv2dtyifpkv7g6v@alap3.anarazel.de> <5393.1461725984@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5393.1461725984@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 On 2016-04-26 22:59:44 -0400, Tom Lane wrote: > What's the argument that it makes debugging harder? Especially if > you aren't using it? If you try to write a V1 function, but forget or mistype/rename the function in PG_FUNCTION_INFO_V1, you'll get crashes, at least if you're lucky. > 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. Without pl*u installed, I don't think any of them are as simple as calling system(). But yea, it's not a very high barrier. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers