Re: dblink vs SQL/MED - security and implementation details - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: dblink vs SQL/MED - security and implementation details
Date
Msg-id 49620F9B.8050501@gmx.net
Whole thread Raw
In response to dblink vs SQL/MED - security and implementation details  (Joe Conway <mail@joeconway.com>)
Responses Re: dblink vs SQL/MED - security and implementation details  (Joe Conway <mail@joeconway.com>)
List pgsql-hackers
Joe Conway wrote:
> I'm mainly concerned about re-opening security holes that we spent a lot 
> of time debating and subsequently closing. I suspect if we assume that 
> any FDW-derived connect string can bypass the checks we put in place, we 
> will regret it later. But I'm open to arguments on both sides...

Can you elaborate what security issues you are concerned about?

> It seems to me that get_connect_string() (or whatever we decide to call 
> it), is very libpq specific, and therefore belongs with postgresql_fdw.c 
> rather than foreign.c. But if we can't reach a consensus there is no 
> harm in leaving it as a dblink.c specific static function either.

postgresql_fdw.c is a module with a defined API.  I don't see what you 
would achieve by putting an ad hoc function in there.


pgsql-hackers by date:

Previous
From: "Fujii Masao"
Date:
Subject: log output of vxid
Next
From: Martin Pihlak
Date:
Subject: Re: dblink vs SQL/MED - security and implementation details