Re: Backup of users and groups?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pg(at)fastcrypt(dot)com
Cc: Bjørn T Johansen <btj(at)havleik(dot)no>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Backup of users and groups?
Date: 2004-03-10 16:21:34
Message-ID: 7312.1078935694@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Dave Cramer <pg(at)fastcrypt(dot)com> writes:
> You should do a pg_dump all of your database(s) if you want to restore
> them on to a 7.4 instance.

> At a minimum, do a pg_dump -s db for the schema, I believe it will dump
> the users and groups.

No, pg_dump only dumps what is in a single database. Users and groups
span all databases in a cluster, so they are outside the purview of
pg_dump. You *must* use pg_dumpall to dump user and group info.

There is an option to pg_dumpall to dump only this info, and not invoke
pg_dump on each individual database as it normally would do.

regards, tom lane

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Richard Bottoms 2004-03-10 16:34:16 Re: two dimensional arrays supported?
Previous Message Kris Jurka 2004-03-10 16:01:40 Re: Backup of users and groups?