pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Pg_dump very large database 3+ messages / 3 participants [nested] [flat]
* Pg_dump very large database @ 2002-02-27 07:54 Nikolay Mihaylov <nmmm@nmmm.nu> 2002-03-01 20:09 ` Re: Pg_dump very large database Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 3+ messages in thread From: Nikolay Mihaylov @ 2002-02-27 07:54 UTC (permalink / raw) To: pgsql-admin 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 ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Pg_dump very large database 2002-02-27 07:54 Pg_dump very large database Nikolay Mihaylov <nmmm@nmmm.nu> @ 2002-03-01 20:09 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2002-03-01 20:09 UTC (permalink / raw) To: Nikolay Mihaylov <nmmm@nmmm.nu>; +Cc: pgsql-admin "Nikolay Mihaylov" <nmmm@nmmm.nu> writes: > 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) This is fixed in 7.2's pg_dump, which as far as I know can be used safely with 7.1 installations, should you not want to update the whole installation just yet. regards, tom lane ^ permalink raw reply [nested|flat] 3+ messages in thread
* FW: Pg_dump very large database @ 2002-02-27 08:00 Nikolay Mihaylov <pg@nmmm.nu> 0 siblings, 0 replies; 3+ messages in thread From: Nikolay Mihaylov @ 2002-02-27 08:00 UTC (permalink / raw) To: pgsql-admin 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 P.s. Is there any interest for discussing very large pg database programming and administration or is such list exist? ----------------------------------------------------------- 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 ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-03-01 20:09 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2002-02-27 07:54 Pg_dump very large database Nikolay Mihaylov <nmmm@nmmm.nu> 2002-03-01 20:09 ` Tom Lane <tgl@sss.pgh.pa.us> 2002-02-27 08:00 FW: Pg_dump very large database Nikolay Mihaylov <pg@nmmm.nu>
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