pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emi Lu <emilu@encs.concordia.ca>
To: Adrian Klaver <adrian.klaver@gmail.com>
Cc: Carlos Mennens <carlos.mennens@gmail.com>
Cc: PostgreSQL (SQL) <pgsql-sql@postgresql.org>
Subject: Re: Change Ownership Recursively
Date: Fri, 02 Mar 2012 11:56:00 -0500
Message-ID: <4F50FBA0.3070808@encs.concordia.ca> (raw)
In-Reply-To: <4F4FD1AD.90501@gmail.com>
References: <CAAQLLO7gqap3zYUGGd0fuTZjS8OWt86OUtvNQubLEGf40AyNfA@mail.gmail.com>
	<4F4FA622.70002@affinitas.de>
	<CAAQLLO7W6pAKz26k=JV8W_47O+DT6kOf--U3QKkmgXq_s7LfMw@mail.gmail.com>
	<4F4FC1A1.6070702@gmail.com>
	<CAAQLLO5j9N4FACujBrsnz+aYVV4mYHa8f1TgmLP16AX97Z7qrg@mail.gmail.com>
	<4F4FD1AD.90501@gmail.com>



> iamunix=# \c postgres
>
> was really meant to be:
>
> iamunix=# \c - postgres
>
> The first changes to database postgres as current user, the second
> changes the user while remaining on the current database.

This is very helpful!

psql> \c - username_for_new_connection

--
Emi




view thread (6+ messages)

Message-ID: <4F50FBA0.3070808@encs.concordia.ca>
Permalink:  ../4F50FBA0.3070808@encs.concordia.ca/
Also on:    postgresql.org/message-id/4F50FBA0.3070808@encs.concordia.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: emilu@encs.concordia.ca, adrian.klaver@gmail.com, carlos.mennens@gmail.com
  Subject: Re: Change Ownership Recursively
  In-Reply-To: <4F50FBA0.3070808@encs.concordia.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox