From: Alvaro Herrera <alvherre@commandprompt.com>
To: Bruno Wolff III <bruno@wolff.to>
To: David Lutterkort <dlutter@redhat.com>
To: pgsql-admin@postgresql.org
Subject: Re: su-like behavior
Date: Sat, 4 Feb 2006 01:04:05 -0300
Message-ID: <20060204040405.GA20796@surnet.cl> (raw)
In-Reply-To: <20060204025249.GA19279@wolff.to>
References: <1139010516.27326.211.camel@currant.watzmann.net>
<20060204025249.GA19279@wolff.to>
Bruno Wolff III wrote:
> On Fri, Feb 03, 2006 at 15:48:35 -0800,
> David Lutterkort <dlutter@redhat.com> wrote:
> > [start as root]
> > su - postgres
> > psql
> > \connect DBNAME DBUSER
> > \i script.sql
Instead of using \connect, use SET SESSION AUTHORIZATION (and connect to
the right database in the first place).
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: alvherre@commandprompt.com, bruno@wolff.to, dlutter@redhat.com
Subject: Re: su-like behavior
In-Reply-To: <20060204040405.GA20796@surnet.cl>
References: <1139010516.27326.211.camel@currant.watzmann.net> <20060204025249.GA19279@wolff.to> <20060204040405.GA20796@surnet.cl>
* 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