Re: How to get connection details from psql -> \e

2018-08-13 Thread hubert depesz lubaczewski
On Mon, Aug 13, 2018 at 10:00:56AM -0400, Tom Lane wrote: > The only likely reason I can guess at is that you want vim to make its > own connection to the database for some purpose like autocompletion. That's precisely what I'm looking for. > That's a cute idea, but from a security standpoint it

Re: How to get connection details from psql -> \e

2018-08-13 Thread hubert depesz lubaczewski
On Mon, Aug 13, 2018 at 03:32:21PM +0200, Laurenz Albe wrote: > hubert depesz lubaczewski wrote: > > I'm trying to work on some extension to vim when invoked as \e from > > psql. > > > > To make it fully work, I need to know connection details that psql was > > using while it invoked \e. > > > >

Re: How to get connection details from psql -> \e

2018-08-13 Thread Tom Lane
hubert depesz lubaczewski writes: > I'm trying to work on some extension to vim when invoked as \e from > psql. > To make it fully work, I need to know connection details that psql was > using while it invoked \e. Uh, why? The only likely reason I can guess at is that you want vim to make its ow

Re: How to get connection details from psql -> \e

2018-08-13 Thread Laurenz Albe
hubert depesz lubaczewski wrote: > I'm trying to work on some extension to vim when invoked as \e from > psql. > > To make it fully work, I need to know connection details that psql was > using while it invoked \e. > > Is it possible to do in any way, or if not, any chance it could be added > to

How to get connection details from psql -> \e

2018-08-13 Thread hubert depesz lubaczewski
Hi, I'm trying to work on some extension to vim when invoked as \e from psql. To make it fully work, I need to know connection details that psql was using while it invoked \e. Is it possible to do in any way, or if not, any chance it could be added to wishlist for next versions of Pg? Best regar