Home > Archive > PostgreSQL Administration > September 2005 > Is pgdump_all == pg_dumpall -g + pg_dump of individual databases ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Is pgdump_all == pg_dumpall -g + pg_dump of individual databases ?
Rajesh Kumar Mallah

2005-09-22, 9:24 am

Hi ,

I suppose pgdump_all creates a SQL script
that is capable of recreating the entire database
except for large_objects.

However pgdump_all produces one single large
SQL files and is not useful(easy) if one has to restore
a particular table.

For this reason we backup our databases individually
using custom format and use pg_restore to restore
individual objects as when required.

My doubt is are the individual database backup files
created through -Fc options along with an SQL file
created using "pgdump_all -g " sufficient to recreate
the entire database ?

Regds
Mallah.

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Robert Treat

2005-09-23, 8:24 pm

On Thursday 22 September 2005 05:14, Rajesh Kumar Mallah wrote:
> Hi ,
>
> I suppose pgdump_all creates a SQL script
> that is capable of recreating the entire database
> except for large_objects.
>
> However pgdump_all produces one single large
> SQL files and is not useful(easy) if one has to restore
> a particular table.
>
> For this reason we backup our databases individually
> using custom format and use pg_restore to restore
> individual objects as when required.
>
> My doubt is are the individual database backup files
> created through -Fc options along with an SQL file
> created using "pgdump_all -g " sufficient to recreate
> the entire database ?
>


Assuming your version of pg_dump dumps binary data with an -Fc dump, then yes.
(Check the docs if you want to verify)

--
Robert Treat
Build A Brighter Lamp :: Linux apache {middleware} PostgreSQL

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com