X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2341BD1B4B7; Fri, 28 Nov 2003 18:45:45 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 77856-04; Fri, 28 Nov 2003 14:45:15 -0400 (AST) Received: from adicia.telenet-ops.be (adicia.telenet-ops.be [195.130.132.56]) by svr1.postgresql.org (Postfix) with ESMTP id 4F2F7D1B44A; Fri, 28 Nov 2003 14:43:25 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by adicia.telenet-ops.be (Postfix) with SMTP id 2307E37F77; Fri, 28 Nov 2003 19:43:20 +0100 (MET) Received: from kabel.telenet.be (D5767DEE.kabel.telenet.be [213.118.125.238]) by adicia.telenet-ops.be (Postfix) with ESMTP id AE6DE37E4A; Fri, 28 Nov 2003 19:43:19 +0100 (MET) Received: by kabel.telenet.be (Postfix, from userid 501) id 68E3315AB2D; Fri, 28 Nov 2003 19:43:18 +0100 (CET) Date: Fri, 28 Nov 2003 19:43:18 +0100 From: Kurt Roeckx To: Anjan Dave Cc: pgsql-admin@postgresql.org, pgsql-patches@postgresql.org Subject: Re: [PATCHES] file too large, segmentation fault Message-ID: <20031128184318.GA29273@ping.be> References: <203C7FC3FF2D7A4588CE0429A87F3C9A04DD7E@vt-pe2550-001.vantage.vantage.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <203C7FC3FF2D7A4588CE0429A87F3C9A04DD7E@vt-pe2550-001.vantage.vantage.com> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/496 X-Sequence-Number: 11483 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