Larry Rosenman writes:
I noticed today that pg_dumpall from current CVS does *NOT*
dump a password assiged to the postgres user.
I consider this BAD, since if one has to restore from
a pg_dumpall, one may forget to reset the password.
I'm unconvinced. The pg_dumpall script is clearly intended to allow
restoration into a new database installation with a different superuser;
you will note that the script is careful not to assume that the old and
new superuser names are the same (an assumption your proposed patch
does make).

In any case the new installation certainly already *has* a superuser.
I'm not sure it's the job of the restore script to change his password
for him.

This does point up that there is some state that is not saved/restored
by pg_dumpall --- the pg_hba.conf file and other config files that
live in $PGDATA come to mind. Perhaps there should be a separate
utility that saves/restores these. (pg_dump can't do it because there's
no way to retrieve these files through a database connection.)

regards, tom lane

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 4 | next ›
Discussion Overview
grouppgsql-hackers @
postedDec 31, '00 at 11:59p
activeJan 2, '01 at 2:05a

2 users in discussion

Larry Rosenman: 3 posts Tom Lane: 1 post



site design / logo © 2022 Grokbase