Bruno Wolff III wrote:
> On Fri, Feb 03, 2006 at 15:48:35 -0800,
>   David Lutterkort <[EMAIL PROTECTED]> 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.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply via email to