pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kurt Roeckx <Q@ping.be>
To: Anjan Dave <adave@vantage.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-patches@postgresql.org
Subject: Re: [PATCHES] file too large, segmentation fault
Date: Fri, 28 Nov 2003 19:43:18 +0100
Message-ID: <20031128184318.GA29273@ping.be> (raw)
In-Reply-To: <203C7FC3FF2D7A4588CE0429A87F3C9A04DD7E@vt-pe2550-001.vantage.vantage.com>
References: <203C7FC3FF2D7A4588CE0429A87F3C9A04DD7E@vt-pe2550-001.vantage.vantage.com>

On Sun, Nov 23, 2003 at 10:51:10PM -0500, Anjan Dave wrote:
> Hi All:
>  
> I am trying to restore a database on a different machine (7.2.3 on Sol9 to 7.2.4 RH8), and i get the following error, that i haven't seen before:
>  
> -bash-2.05b$ pg_restore -d access -Ft -a access.dump.tar
> pg_restore: [tar archiver] could not open TOC file for input: File too large
> Segmentation fault
> -bash-2.05b$
> 
> -bash-2.05b$ ls -l
> total 2339148
> -rw-r--r--    1 root     root     2323785216 Nov 23 22:43 access.dump.tar

The problem is that your file is over 2 GB, your OS/libc has a
problem opening such big files (using fopen()).

Try cat access.dump.tar | pg_restore -d access -Ft -a

> I read somewhere that there's a patch for this:
> http://dbforums.com/arch/173/2003/1/675653
>  
> Will this patch fix it? Where do i get it from and how do i apply it?

The patch only fixed that "segmentation fault", not the "File too
large".


Kurt




view thread (4+ messages)  latest in thread

Message-ID: <20031128184318.GA29273@ping.be>
Permalink:  ../20031128184318.GA29273@ping.be/
Also on:    postgresql.org/message-id/20031128184318.GA29273@ping.be

 · 

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: Q@ping.be, adave@vantage.com, pgsql-patches@postgresql.org
  Subject: Re: [PATCHES] file too large, segmentation fault
  In-Reply-To: <20031128184318.GA29273@ping.be>
  References: <203C7FC3FF2D7A4588CE0429A87F3C9A04DD7E@vt-pe2550-001.vantage.vantage.com> <20031128184318.GA29273@ping.be>

* 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