Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group