Re: Backup roles / users

From: Vivek Khera <vivek(at)khera(dot)org>
To: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Backup roles / users
Date: 2006-09-22 19:18:39
Message-ID: 1375CB62-E789-4CCC-B513-4034D2EC6621@khera.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Sep 22, 2006, at 3:20 AM, Alain Roger wrote:

> When i migrate my DB to another computer, should i recreate all
> roles manually ?

either that or use this command to dump the roles as an SQL file you
can feed into the new server. it will complain about trying to
recreate the superuser, but that's ignorable:

pg_dumpall --globals-only -U ${pguser} > users.sql

where pguser is defined as the postgres superuser you use.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vivek Khera 2006-09-22 19:32:14 Re: postgresql rising
Previous Message Vivek Khera 2006-09-22 19:15:14 Re: Backup / export DB