From: Tom Lane <tgl@sss.pgh.pa.us>
To: enio@pmpf.rs.gov.br
Cc: pgsql-admin@postgresql.org
Subject: Re: Scripts Importing and Authentication
Date: Sat, 07 Feb 2004 01:20:58 -0500
Message-ID: <17120.1076134858@sss.pgh.pa.us> (raw)
In-Reply-To: <20040205194740.196D746E09@mail.passofundo.rs.gov.br>
References: <20040205194740.196D746E09@mail.passofundo.rs.gov.br>
"Enio Schutt Junior" <enio@pmpf.rs.gov.br> writes:
> So, is there a way of making the import of a script without
> having to supply passwords of all different users contained
> in that script?
You want the script to use SET SESSION AUTHORIZATION instead of
\connect. As of PG 7.4 this is the default; for a release or two
beforehand, there's some arcane option you can specify to pg_dump.
regards, tom lane
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: tgl@sss.pgh.pa.us, enio@pmpf.rs.gov.br
Subject: Re: Scripts Importing and Authentication
In-Reply-To: <17120.1076134858@sss.pgh.pa.us>
References: <20040205194740.196D746E09@mail.passofundo.rs.gov.br> <17120.1076134858@sss.pgh.pa.us>
* 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