Re: How to list current user and database in PSQL

From: Bosco Rama <postgres(at)boscorama(dot)com>
To: peterlen <peteralen(at)earthlink(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to list current user and database in PSQL
Date: 2013-12-31 19:11:13
Message-ID: 52C316D1.1020209@boscorama.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/31/13 11:06, Bosco Rama wrote:
>
> Use the connect meta without arguments, i.e.
>
> xyz> \c
> You are now connected to database "xyz" as user "demo".

Hmmm. Scratch that. That actually does a reconnect. Probably not
what you want, especially is you are in the middle of a transaction. :-(

Bosco.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message peterlen 2013-12-31 19:12:10 Re: How to list current user and database in PSQL
Previous Message Bosco Rama 2013-12-31 19:06:45 Re: How to list current user and database in PSQL