Re: Backup roles / users - Mailing list pgsql-general

From Vivek Khera
Subject Re: Backup roles / users
Date
Msg-id 1375CB62-E789-4CCC-B513-4034D2EC6621@khera.org
Whole thread Raw
In response to Backup roles / users  ("Alain Roger" <raf.news@gmail.com>)
List 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.

Attachment

pgsql-general by date:

Previous
From: Vivek Khera
Date:
Subject: Re: Backup / export DB
Next
From: Vivek Khera
Date:
Subject: Re: postgresql rising