pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Enio Schutt Junior <enio@pmpf.rs.gov.br>
To: pgsql-admin@postgresql.org
Subject: Scripts Importing and Authentication
Date: Thu, 5 Feb 2004 19:47:40 -0000
Message-ID: <20040205194740.196D746E09@mail.passofundo.rs.gov.br> (raw)

The Postgresql I use is configured to authenticate users via md5 
(trust option in pg_hba.conf file) 
 
These days, after pg_dump'ing a database, and then reimporting it, 
Postgresql asks for the password of every user which is described 
by the \connect command in the script. I have used the environment 
variables PGUSER and PGPASSWORD, but they work for only one user, 
and the script has about 4 users in it and I don't know which 
one of them Postgres wants to know, because it only shows the 
prompt saying 'password:' and nothing more. 
 
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? (I haven't done that, I have disabled the 
authentication)  
Is there a way of making it without disabling the authentication? 
 
Thanks. 



view thread (2+ messages)  latest in thread

Message-ID: <20040205194740.196D746E09@mail.passofundo.rs.gov.br>
Permalink:  ../20040205194740.196D746E09@mail.passofundo.rs.gov.br/
Also on:    postgresql.org/message-id/20040205194740.196D746E09@mail.passofundo.rs.gov.br

 · 

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 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: enio@pmpf.rs.gov.br
  Subject: Re: Scripts Importing and Authentication
  In-Reply-To: <20040205194740.196D746E09@mail.passofundo.rs.gov.br>
  References: <20040205194740.196D746E09@mail.passofundo.rs.gov.br>

* 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