pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_dump max file size exceeded
9+ messages / 9 participants
[nested] [flat]

* pg_dump max file size exceeded
@ 2002-03-19 21:39 Fred Moyer <fred@digicamp.com>
  2002-03-19 22:46 ` Re: pg_dump max file size exceeded Nick Fankhauser <nickf@ontko.com>
  2002-03-19 23:32 ` Re: pg_dump max file size exceeded Tuna Chatterjee <tchatter@alert.infoplease.com>
  2002-03-20 05:15 ` Re: pg_dump max file size exceeded Tom Lane <tgl@sss.pgh.pa.us>
  2002-03-20 15:45 ` Re: pg_dump max file size exceeded Naomi Walker <nwalker@eldocomp.com>
  0 siblings, 4 replies; 9+ messages in thread

From: Fred Moyer @ 2002-03-19 21:39 UTC (permalink / raw)
  To: pgsql-admin

hey fellow pg'ers.

ran time pg_dump -c --verbose database > datafile.psql from the command line
and got a file size limit exceeded.  datafile.psql stopped at 2 gigs.  any
ideas how to exceed that limit?

redhat 7.2, 2.4.9-31 kernel
postgres 7.2




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

* Re: pg_dump max file size exceeded
  2002-03-19 21:39 pg_dump max file size exceeded Fred Moyer <fred@digicamp.com>
@ 2002-03-19 22:46 ` Nick Fankhauser <nickf@ontko.com>
  3 siblings, 0 replies; 9+ messages in thread

From: Nick Fankhauser @ 2002-03-19 22:46 UTC (permalink / raw)
  To: Fred Moyer <fred@digicamp.com>; pgsql-admin


Pipe it into gzip:

pg_dump db_name|gzip>dbname.sql.gz

NickF

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/


> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Fred Moyer
> Sent: Tuesday, March 19, 2002 4:39 PM
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] pg_dump max file size exceeded
>
>
> hey fellow pg'ers.
>
> ran time pg_dump -c --verbose database > datafile.psql from the
> command line
> and got a file size limit exceeded.  datafile.psql stopped at 2 gigs.  any
> ideas how to exceed that limit?
>
> redhat 7.2, 2.4.9-31 kernel
> postgres 7.2
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>




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

* Re: pg_dump max file size exceeded
  2002-03-19 21:39 pg_dump max file size exceeded Fred Moyer <fred@digicamp.com>
@ 2002-03-19 23:32 ` Tuna Chatterjee <tchatter@alert.infoplease.com>
  2002-03-20 06:05   ` Re: pg_dump max file size exceeded Jyry Kuukkanen <jyry@neutech.fi>
  3 siblings, 1 reply; 9+ messages in thread

From: Tuna Chatterjee @ 2002-03-19 23:32 UTC (permalink / raw)
  To: Fred Moyer <fred@digicamp.com>; +Cc: pgsql-admin

hi fred,

i ran into the same problem a couple of weeks ago and realized that the
problem was where the dump was being put instead of trying to deal with
the size of the file.

go ahead and do type 'df' at the command prompt and look at the space
allocated to your partitions.  do the database dump accordingly. i.e. i
found out that /var/tmp was the perfect place to spit out my dbdump.txt
file.

good luck!
tuna

On Tue, 2002-03-19 at 16:39, Fred Moyer wrote:
> hey fellow pg'ers.
> 
> ran time pg_dump -c --verbose database > datafile.psql from the command line
> and got a file size limit exceeded.  datafile.psql stopped at 2 gigs.  any
> ideas how to exceed that limit?
> 
> redhat 7.2, 2.4.9-31 kernel
> postgres 7.2
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)





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

* Re: pg_dump max file size exceeded
  2002-03-19 21:39 pg_dump max file size exceeded Fred Moyer <fred@digicamp.com>
  2002-03-19 23:32 ` Re: pg_dump max file size exceeded Tuna Chatterjee <tchatter@alert.infoplease.com>
@ 2002-03-20 06:05   ` Jyry Kuukkanen <jyry@neutech.fi>
  0 siblings, 0 replies; 9+ messages in thread

From: Jyry Kuukkanen @ 2002-03-20 06:05 UTC (permalink / raw)
  To: Fred Moyer <fred@digicamp.com>; +Cc: pgsql-admin

On Tue, 2002-03-19 at 16:39, Fred Moyer wrote:
> hey fellow pg'ers.
>
> ran time pg_dump -c --verbose database > datafile.psql from the command line
> and got a file size limit exceeded.  datafile.psql stopped at 2 gigs.  any
> ideas how to exceed that limit?
>
> redhat 7.2, 2.4.9-31 kernel
> postgres 7.2


Hello Fred

Are you trying to dump over NFS? NFS has a 2G file size limit and AFAIK
there is no simple way to get around it.

Howver, you could compress you dump on the fly:
pg_dump -c --verbose database |gzip -c >datafile.psql.gz

or

pg_dump -c --verbose database | bzip2 -c >datafile.psql.bz2
(for better compression)

restoring:
zcat datafile.psql.gz | psql database

or

bzcat datafile.psql.gz | psql database


Cheers,
--Jyry
C:-(    C:-/    C========8-O    C8-/    C:-(

Kansainvälisten kisojen tulosteksteissä käytetään
kilpailijoiden nimiin äänestoainetta.





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

* Re: pg_dump max file size exceeded
  2002-03-19 21:39 pg_dump max file size exceeded Fred Moyer <fred@digicamp.com>
@ 2002-03-20 05:15 ` Tom Lane <tgl@sss.pgh.pa.us>
  3 siblings, 0 replies; 9+ messages in thread

From: Tom Lane @ 2002-03-20 05:15 UTC (permalink / raw)
  To: Fred Moyer <fred@digicamp.com>; +Cc: pgsql-admin

"Fred Moyer" <fred@digicamp.com> writes:
> ran time pg_dump -c --verbose database > datafile.psql from the command line
> and got a file size limit exceeded.  datafile.psql stopped at 2 gigs.  any
> ideas how to exceed that limit?

> redhat 7.2, 2.4.9-31 kernel

[ scratches head... ]  If you were on Solaris or HPUX I'd tell you to
recompile with 64-bit file offset support enabled.  But I kinda thought
this was standard equipment on recent Linux versions.  Anyone know the
magic incantation for large-file support on Linux?

			regards, tom lane



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

* Re: pg_dump max file size exceeded
  2002-03-19 21:39 pg_dump max file size exceeded Fred Moyer <fred@digicamp.com>
@ 2002-03-20 15:45 ` Naomi Walker <nwalker@eldocomp.com>
  2002-03-20 17:47   ` Re: pg_dump max file size exceeded Rolf Luettecke <rolf.luettecke@michael-telecom.de>
  3 siblings, 1 reply; 9+ messages in thread

From: Naomi Walker @ 2002-03-20 15:45 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Fred Moyer <fred@digicamp.com>; +Cc: pgsql-admin

At 12:15 AM 3/20/02 -0500, Tom Lane wrote:
>"Fred Moyer" <fred@digicamp.com> writes:
> > ran time pg_dump -c --verbose database > datafile.psql from the command 
> line
> > and got a file size limit exceeded.  datafile.psql stopped at 2 gigs.  any
> > ideas how to exceed that limit?
>
> > redhat 7.2, 2.4.9-31 kernel
>
>[ scratches head... ]  If you were on Solaris or HPUX I'd tell you to
>recompile with 64-bit file offset support enabled.  But I kinda thought
>this was standard equipment on recent Linux versions.  Anyone know the
>magic incantation for large-file support on Linux?

depending on the shell being used, i'd try limit or ulimit

We've seen a case where large file support had to be tweaked in the Veritas 
file systems as well.

--
Naomi Walker
Chief Information Officer
Eldorado Computing, Inc.
602-604-3100  ext 242 




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

* Re: pg_dump max file size exceeded
  2002-03-19 21:39 pg_dump max file size exceeded Fred Moyer <fred@digicamp.com>
  2002-03-20 15:45 ` Re: pg_dump max file size exceeded Naomi Walker <nwalker@eldocomp.com>
@ 2002-03-20 17:47   ` Rolf Luettecke <rolf.luettecke@michael-telecom.de>
  2002-03-22 09:38     ` Re: pg_dump max file size exceeded Dmitry Morozovsky <marck@rinet.ru>
  0 siblings, 1 reply; 9+ messages in thread

From: Rolf Luettecke @ 2002-03-20 17:47 UTC (permalink / raw)
  To: pgsql-admin

>"Fred Moyer" <fred@digicamp.com> writes:
> ran time pg_dump -c --verbose database > datafile.psql from the command 
> line and got a file size limit exceeded.  datafile.psql stopped at 2 gigs.
> any ideas how to exceed that limit?

Workaround: Pipe output to gzip/bzip2, if compressed file size does not
reach 2 GB limit, or cut output into 2GB-pieces.

Regards
R. Luettecke



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

* Re: pg_dump max file size exceeded
  2002-03-19 21:39 pg_dump max file size exceeded Fred Moyer <fred@digicamp.com>
  2002-03-20 15:45 ` Re: pg_dump max file size exceeded Naomi Walker <nwalker@eldocomp.com>
  2002-03-20 17:47   ` Re: pg_dump max file size exceeded Rolf Luettecke <rolf.luettecke@michael-telecom.de>
@ 2002-03-22 09:38     ` Dmitry Morozovsky <marck@rinet.ru>
  0 siblings, 0 replies; 9+ messages in thread

From: Dmitry Morozovsky @ 2002-03-22 09:38 UTC (permalink / raw)
  To: Rolf Luettecke <rolf.luettecke@michael-telecom.de>; +Cc: pgsql-admin

On Wed, 20 Mar 2002, Rolf Luettecke wrote:

RL> >"Fred Moyer" <fred@digicamp.com> writes:
RL> > ran time pg_dump -c --verbose database > datafile.psql from the command
RL> > line and got a file size limit exceeded.  datafile.psql stopped at 2 gigs.
RL> > any ideas how to exceed that limit?
RL>
RL> Workaround: Pipe output to gzip/bzip2, if compressed file size does not
RL> reach 2 GB limit, or cut output into 2GB-pieces.

... and if it's still does not fit, pipe it further into split(1) ;-)
[though I don't know whether this utility exists in standard Linux
distrib. In BSDs it does.]


Sincerely,
D.Marck                                   [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------




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

* Re: pg_dump max file size exceeded
@ 2002-03-20 16:35 Corey W. Gibbs <cgibbs@westmarkproducts.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Corey W. Gibbs @ 2002-03-20 16:35 UTC (permalink / raw)
  To: pgsql-admin

Hidey hidey hidey hi,

Have you tried piping the output to gzip then to another file? So
pg_dump -c --verbose database | gzip > /foo/bar.gzip?

I also use ftpbackup to move the gzip file to another server that has a ton 
o diskspace and large file support.  Here's a line from teh script

pg_dump CES | gzip | /usr/local/bin/ftpbackup -h bessie -u foo -p bar -b 
/lboxbak/$MONTH$DAY.CES.gz

$MONTH and $DAY are set earlier in the script.
hope this helps
~corey

-----Original Message-----
From:	Naomi Walker [SMTP:nwalker@eldocomp.com]
Sent:	Wednesday, March 20, 2002 7:46 AM
To:	Tom Lane; Fred Moyer
Cc:	pgsql-admin@postgresql.org
Subject:	Re: [ADMIN] pg_dump max file size exceeded

At 12:15 AM 3/20/02 -0500, Tom Lane wrote:
>"Fred Moyer" <fred@digicamp.com> writes:
> > ran time pg_dump -c --verbose database > datafile.psql from the command 
> line
> > and got a file size limit exceeded.  datafile.psql stopped at 2 gigs. 
 any
> > ideas how to exceed that limit?
>
> > redhat 7.2, 2.4.9-31 kernel
>
>[ scratches head... ]  If you were on Solaris or HPUX I'd tell you to
>recompile with 64-bit file offset support enabled.  But I kinda thought
>this was standard equipment on recent Linux versions.  Anyone know the
>magic incantation for large-file support on Linux?

depending on the shell being used, i'd try limit or ulimit

We've seen a case where large file support had to be tweaked in the Veritas 
file systems as well.

--
Naomi Walker
Chief Information Officer
Eldorado Computing, Inc.
602-604-3100  ext 242


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)




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


end of thread, other threads:[~2002-03-22 09:38 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-03-19 21:39 pg_dump max file size exceeded Fred Moyer <fred@digicamp.com>
2002-03-19 22:46 ` Nick Fankhauser <nickf@ontko.com>
2002-03-19 23:32 ` Tuna Chatterjee <tchatter@alert.infoplease.com>
2002-03-20 06:05   ` Jyry Kuukkanen <jyry@neutech.fi>
2002-03-20 05:15 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-03-20 15:45 ` Naomi Walker <nwalker@eldocomp.com>
2002-03-20 17:47   ` Rolf Luettecke <rolf.luettecke@michael-telecom.de>
2002-03-22 09:38     ` Dmitry Morozovsky <marck@rinet.ru>
2002-03-20 16:35 Re: pg_dump max file size exceeded Corey W. Gibbs <cgibbs@westmarkproducts.com>

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