Re: su-like behavior

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Bruno Wolff III <bruno(at)wolff(dot)to>, David Lutterkort <dlutter(at)redhat(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: su-like behavior
Date: 2006-02-04 04:04:05
Message-ID: 20060204040405.GA20796@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Bruno Wolff III wrote:
> On Fri, Feb 03, 2006 at 15:48:35 -0800,
> David Lutterkort <dlutter(at)redhat(dot)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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Alp UYANIK 2006-02-04 09:14:58 autovacuum
Previous Message Bruno Wolff III 2006-02-04 02:52:49 Re: su-like behavior