"Enio Schutt Junior" <enio(at)pmpf(dot)rs(dot)gov(dot)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