Re: [HACKERS] minor issue: \c without parameter disconnect current user

2016-10-19 Thread Pavel Stehule
2016-10-18 20:11 GMT+02:00 Alvaro Herrera : > Robert Haas wrote: > > On Mon, Oct 17, 2016 at 12:49 AM, Pavel Stehule > wrote: > > > I expect so \c without parameters has only informational character. > But \c > > > reset user. > > > > Yeah, I use that feature all the time. > > And so do the regre

Re: [HACKERS] minor issue: \c without parameter disconnect current user

2016-10-18 Thread Tom Lane
Alvaro Herrera writes: > Robert Haas wrote: >> On Mon, Oct 17, 2016 at 12:49 AM, Pavel Stehule >> wrote: >>> I expect so \c without parameters has only informational character. But \c >>> reset user. >> Yeah, I use that feature all the time. > And so do the regression tests. pg_dump relies on

Re: [HACKERS] minor issue: \c without parameter disconnect current user

2016-10-18 Thread Alvaro Herrera
Robert Haas wrote: > On Mon, Oct 17, 2016 at 12:49 AM, Pavel Stehule > wrote: > > I expect so \c without parameters has only informational character. But \c > > reset user. > > Yeah, I use that feature all the time. And so do the regression tests. I think what Pavel wants is \conninfo. -- Ál

Re: [HACKERS] minor issue: \c without parameter disconnect current user

2016-10-18 Thread Robert Haas
On Mon, Oct 17, 2016 at 12:49 AM, Pavel Stehule wrote: > I expect so \c without parameters has only informational character. But \c > reset user. Yeah, I use that feature all the time. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsq

[HACKERS] minor issue: \c without parameter disconnect current user

2016-10-16 Thread Pavel Stehule
Hi I expect so \c without parameters has only informational character. But \c reset user. postgres=# set role to tom; SET Time: 0.787 ms postgres=> select current_user; +--+ | current_user | +--+ | tom | +--+ (1 row) Time: 0.851 ms postgres=> \c You