pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Postgresql Backup & Dump
2+ messages / 2 participants
[nested] [flat]

* Postgresql Backup & Dump
@ 2004-04-10 04:42  gajanan <gajanan.choudhari@codecindia.com>
  0 siblings, 1 reply; 2+ messages in thread

From: gajanan @ 2004-04-10 04:42 UTC (permalink / raw)
  To: pgsql-admin

Hi,
 In my application I need to use old database present on postgersql at client site. For that I have created dump using

     pg_dump -o db_name | gzip > db_dump 

command at the client  site and then downloaded the dump on local server. But when I am trying to restore, it only restore the empty database tables. I am using following command to restore the database.

     /usr/local/pgsql/bin/psql db_name < db_dump 

Client postgresql ver is 7.1 and I am using 7.4. Also the size of database is about 600 MB. 

Is it depends on the size or version?

So what shuold be right procedure to restore the database at my server from the remote server? 

Where I am going wrong? 

Thank! 

Regard, 

Gajanan C.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Postgresql Backup & Dump
@ 2004-04-15 14:31  Robert Treat <xzilla@users.sourceforge.net>
  parent: gajanan <gajanan.choudhari@codecindia.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Treat @ 2004-04-15 14:31 UTC (permalink / raw)
  To: gajanan <gajanan.choudhari@codecindia.com>; +Cc: pgsql-admin

On Sat, 2004-04-10 at 00:42, gajanan wrote:
> Hi,
> 
>  In my application I need to use old database present on postgersql at
> client site. For that I have created dump using
> 
>      pg_dump -o db_name | gzip > db_dump 
> 
> command at the client  site and then downloaded the dump on local
> server. But when I am trying to restore, it only restore the empty
> database tables. I am using following command to restore the database.
> 
>      /usr/local/pgsql/bin/psql db_name < db_dump 
> 
> Client postgresql ver is 7.1 and I am using 7.4. Also the size of
> database is about 600 MB. 
> 
> Is it depends on the size or version?

more the version than the size (especially given the relatively small
size of your dump)

> 
> So what shuold be right procedure to restore the database at my server
> from the remote server? 
> 

if possible i'd recommend trying to dump the 7.1 database with the 7.4
pg_dump program. 

> Where I am going wrong? 
> 

i guessing that you are getting some type of error when loading your
dump into the 7.4 system that your just not seeing. crank up the logging
and see where it is. alternatively try dumping using insert commands as
this tends to be a little more robust when dealing with problem dumps
(though it will be slower)

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-04-15 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-10 04:42 Postgresql Backup & Dump gajanan <gajanan.choudhari@codecindia.com>
2004-04-15 14:31 ` Robert Treat <xzilla@users.sourceforge.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox