Skip site navigation (1) Skip section navigation (2)

Re: psql error: file to large!

From: Weiping He <laser(at)zhengmai(dot)com(dot)cn>
To: Roy Souther <roy(at)silicontao(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: psql error: file to large!
Date: 2001-07-27 15:16:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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.


would help.

    regards    laser

In response to

pgsql-admin by date

Next:From: Stephan SzaboDate: 2001-07-27 16:08:38
Subject: Re: Full Case INSENSITIVE ...
Previous:From: Roy SoutherDate: 2001-07-27 14:42:54
Subject: PG 7.1.2 table names?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group