Re: dblink connection security - Mailing list pgsql-patches

From Joe Conway
Subject Re: dblink connection security
Date
Msg-id 4691BB16.80604@joeconway.com
Whole thread Raw
In response to Re: dblink connection security  (Stephen Frost <sfrost@snowman.net>)
Responses Re: dblink connection security
Re: dblink connection security
List pgsql-patches
Stephen Frost wrote:
> * Joe Conway (mail@joeconway.com) wrote:
>> Sure it matters. A function written in a trusted language is known to be
>> safe, a priori. A function written in an untrusted language has no such
>> guarantees, and therefore has to be assumed unsafe unless carefully proved
>> otherwise.
>
> I see..  So all the functions in untrusted languages that come with PG
> initially should be checked over by every sysadmin when installing PG
> every time...  And the same for PostGIS, and all of the PL's that use
> untrusted languages?

There are none installed by default -- that's the point.

> On my pretty modest install that's 2,206 functions.  For some reason I
> see something of a difference between 'generate_series' and 'dblink' in
> terms of security and which one I'm comfortable having enabled by
> default and which one I'm not.

generate_series is a built in function. We aren't discussing those.

Joe

pgsql-patches by date:

Previous
From: Stephen Frost
Date:
Subject: Re: dblink connection security
Next
From: Stephen Frost
Date:
Subject: Re: dblink connection security