pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
migrating administrative pieces to new install
2+ messages / 2 participants
[nested] [flat]

* migrating administrative pieces to new install
@ 2000-01-28 21:45 hal Lynch <hal@sticky.usu.edu>
  2000-01-29 16:58 ` Re: [ADMIN] migrating administrative pieces to new install Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 2+ messages in thread

From: hal Lynch @ 2000-01-28 21:45 UTC (permalink / raw)
  To: pgsql-admin

I have both a production machine and a test machine.
The production machine is running 6.5.2 and FreeBSD 3.0.
The test machine is running 6.5.3 and FreeBSD 3.4.

The idea is to migrate all databases from the prod. machine
to the test machine.  As soon as the test machine works properly
it will become the prod. machine and vice-versa.

All databases are read(select) only.  my pg_hba.conf looks like this:
    local all password passwd.

pg_dumpall fails.  I haven't found a way to supply a username
and password to the command.  The -u flag dosen't work.

pg_dump works but what databases/tables do I dump to get all my
username info.

Any hints for the hintless?

hal





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [ADMIN] migrating administrative pieces to new install
  2000-01-28 21:45 migrating administrative pieces to new install hal Lynch <hal@sticky.usu.edu>
@ 2000-01-29 16:58 ` Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2000-01-29 16:58 UTC (permalink / raw)
  To: hal Lynch <hal@sticky.usu.edu>; +Cc: pgsql-admin

On 2000-01-28, hal Lynch mentioned:

> All databases are read(select) only.  my pg_hba.conf looks like this:
>     local all password passwd.
> 
> pg_dumpall fails.  I haven't found a way to supply a username
> and password to the command.  The -u flag dosen't work.

That's right. Since every database could (in theory) have a completely
different authentication scheme, it's not much good to provide a -u option
to pg_dumpall.

Since pg_dumpall calls pg_dump, it would be possible to make pg_dump
recognize when a password is needed automatically. On the other hand I'm
more in favour of scrapping pg_dump altogether and rewriting it on of
these days.

> pg_dump works but what databases/tables do I dump to get all my
> username info.

The global tables are pg_shadow, pg_group, and pg_database. If they're not
too big you might be better off transferring them by hand rather than
bothering too much with getting pg_dump[all] to work.

Of course, temporarily disabling the password authentication would work as
well.

-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-01-29 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-01-28 21:45 migrating administrative pieces to new install hal Lynch <hal@sticky.usu.edu>
2000-01-29 16:58 ` Peter Eisentraut <peter_e@gmx.net>

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