Re: best practices for dumping databases

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mag Gam" <magawake(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: best practices for dumping databases
Date: 2008-04-07 01:24:04
Message-ID: 16057.1207531444@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Mag Gam" <magawake(at)gmail(dot)com> writes:
> But, what is the correct practice to do db_dumps? pg_dump db should suffice?

Yes, though remember that pg_dump doesn't dump any role or tablespace
definitions, and it also doesn't think about properties attached to the
database as such (ALTER DATABASE etc). You might want to use
"pg_dumpall -g" for those.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Karl Martindale 2008-04-07 01:40:40 Postgres -> VB6
Previous Message Mag Gam 2008-04-07 00:49:35 Re: best practices for dumping databases