From: Weiping He <laser@zhengmai.com.cn>
To: Roy Souther <roy@silicontao.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: psql error: file to large!
Date: Fri, 27 Jul 2001 23:16:12 +0800
Message-ID: <3B6185BC.60981A15@zhengmai.com.cn> (raw)
References: <0107261654040I.02987@UtopiaPlanitia>
Roy Souther wrote:
> This is a follow up to my previous post "Upgrade problems"
> I compiled from source and have the same problem.
>
> ---------------------- My original post. ----------------------------------
> I have a large database. I had PG 7.0. I did the data dump and got a 2.5 GB
> file. But when I tried to run psql with the new 7.1.2 I get a file to large
> error and nothing happens psql exits.
>
> Is there a limit with psql? I am hoping it was compiled wrong. I insted from
> the binary RPMS for Mandrake 8.0.
>
> I will try compiling the source and see if that fixes the problem.
> Is there some way I could dump to two files?
> Do a dump on individual tables? pg_dumpall just does an SQL "COPY
> <table_name> TO stdio" so is there and easy what I could write a bash script
> to do a dump like this for each table? Then I could restore them one table
> at a time right?
>
The single file size in ext2 can't exceed 2G,
so I think you should use 'gzip' to compress the dump,
or use 'split' to split the large file, or use 'pg_dump -t table_name'
to dump only one table.
see:
http://www.postgresql.org/idocs/index.php?backup.html#BACKUP-DUMP-LARGE
would help.
regards laser
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: laser@zhengmai.com.cn, roy@silicontao.com
Subject: Re: psql error: file to large!
In-Reply-To: <3B6185BC.60981A15@zhengmai.com.cn>
References: <0107261654040I.02987@UtopiaPlanitia> <3B6185BC.60981A15@zhengmai.com.cn>
* 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