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 56612D1B431; Fri, 28 Nov 2003 19:40:56 +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 86366-04; Fri, 28 Nov 2003 15:40:26 -0400 (AST) Received: from hosting.commandprompt.com (224.commandprompt.com [207.173.200.224]) by svr1.postgresql.org (Postfix) with ESMTP id C50B8D1B435; Fri, 28 Nov 2003 15:40:23 -0400 (AST) Received: from commandprompt.com (dsl093-038-087.pdx1.dsl.speakeasy.net [66.93.38.87]) (authenticated) by hosting.commandprompt.com (8.11.6/8.11.6) with ESMTP id hASJeCw26944; Fri, 28 Nov 2003 11:40:12 -0800 Message-ID: <3FC7A487.2020601@commandprompt.com> Date: Fri, 28 Nov 2003 11:39:51 -0800 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031014 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kurt Roeckx Cc: Anjan Dave , pgsql-admin@postgresql.org, pgsql-patches@postgresql.org Subject: Re: [PATCHES] file too large, segmentation fault References: <203C7FC3FF2D7A4588CE0429A87F3C9A04DD7E@vt-pe2550-001.vantage.vantage.com> <20031128184318.GA29273@ping.be> In-Reply-To: <20031128184318.GA29273@ping.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/497 X-Sequence-Number: 11484 Hello, Did the dump come from those machines? If so, it is probably not a valid archive anyway because you hit the 2gig limit. My suggestion would be to recompile PostgreSQL with the 64bit file access. Sincerely, Joshua D. Drake Kurt Roeckx wrote: >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 > > >---------------------------(end of broadcast)--------------------------- >TIP 4: Don't 'kill -9' the postmaster > > -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC Postgresql support, programming shared hosting and dedicated hosting. +1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL