From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Noah Misch <noah@leadboat.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: Re: pgsql: Convert contrib/seg's bool-returning SQL functions to V1 call co
Date: Tue, 26 Apr 2016 20:04:11 -0700
Message-ID: <20160427030411.hjod6bja6pjnmlab@alap3.anarazel.de> (raw)
In-Reply-To: <5393.1461725984@sss.pgh.pa.us>
References: <E1atdPs-0005zu-Re@gemulon.postgresql.org>
<20160427023828.GA2150695@tornado.leadboat.com>
<20160427024415.6mv2dtyifpkv7g6v@alap3.anarazel.de>
<5393.1461725984@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
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
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-committers@postgresql.org
Cc: andres@anarazel.de, tgl@sss.pgh.pa.us, noah@leadboat.com
Subject: Re: pgsql: Convert contrib/seg's bool-returning SQL functions to V1 call co
In-Reply-To: <20160427030411.hjod6bja6pjnmlab@alap3.anarazel.de>
References: <E1atdPs-0005zu-Re@gemulon.postgresql.org> <20160427023828.GA2150695@tornado.leadboat.com> <20160427024415.6mv2dtyifpkv7g6v@alap3.anarazel.de> <5393.1461725984@sss.pgh.pa.us> <20160427030411.hjod6bja6pjnmlab@alap3.anarazel.de>
* 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