minor issue: \c without parameter disconnect current user - Mailing list pgsql-hackers

From Pavel Stehule
Subject minor issue: \c without parameter disconnect current user
Date
Msg-id CAFj8pRAaAap-KdYujD6GsEpSrbyEL=VLic3b2P9CkkXbaKYA=g@mail.gmail.com
Whole thread Raw
Responses Re: minor issue: \c without parameter disconnect current user  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
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 are now connected to database "postgres" as user "pavel".
postgres=# select current_user;
+--------------+
| current_user |
+--------------+
| pavel        |
+--------------+
(1 row)


Regards

Pavel

pgsql-hackers by date:

Previous
From: Kouhei Kaigai
Date:
Subject: Re: Steps inside ExecEndGather
Next
From: Dilip Kumar
Date:
Subject: Re: Parallel bitmap heap scan