pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nikolay Mihaylov <nmmm@nmmm.nu>
To: pgsql-admin@postgresql.org
Subject: Pg_dump very large database
Date: Wed, 27 Feb 2002 09:54:11 +0200
Message-ID: <000101c1bf63$f168cf90$97e309d9@protos> (raw)




Hi all.
I have a database with very large tables - about 2+ GB per table.

When I'm using pg_dump tool, it get all memory available, then linux
crash (or kernel kills the most of processes including pg_dump)

For this reason I made small php script which dump data using 'fetch
next in cursor' (PHP is lame for this but is perfect for me).
I tried to patch pg_dump, but I cant understand most of the code (never
works with pg blobs from C).

I'm attaching the files I use in order to share them with all you. 

Nikolay.

P.s. 
Shell scripts are for calling the php scripts.
dump1.sh - create list with shell commands needs to be executed in order
to get backup.
dump.sh - backup single table

-----------------------------------------------------------
The Reboots are for hardware upgrades,
Found more here: http://www.nmmm.nu
Nikolay Mihaylov nmmm@nmmm.nu

Attachments:

  pgdump-nmmm.tar (application/x-tar, 10.0K) download

view thread (3+ messages)  latest in thread

Message-ID: <000101c1bf63$f168cf90$97e309d9@protos>
Permalink:  ../000101c1bf63$f168cf90$97e309d9@protos/
Also on:    postgresql.org/message-id/000101c1bf63$f168cf90$97e309d9@protos

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nmmm@nmmm.nu
  Subject: Re: Pg_dump very large database
  In-Reply-To: <000101c1bf63$f168cf90$97e309d9@protos>
  References: <000101c1bf63$f168cf90$97e309d9@protos>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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