Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 4763E9FB5E6 for ; Mon, 5 Mar 2007 11:35:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 85495-05 for ; Mon, 5 Mar 2007 11:34:52 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by postgresql.org (Postfix) with ESMTP id AC00A9FB50C for ; Mon, 5 Mar 2007 11:34:57 -0400 (AST) Received: from [194.25.154.138] (helo=webserv.wug.de) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis), id 0ML2xA-1HOFDA0lJq-0000xe; Mon, 05 Mar 2007 16:34:52 +0100 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1HOFD9-0007iQ-00 for pgsql-performance@postgresql.org; Mon, 05 Mar 2007 16:34:51 +0100 Date: Mon, 5 Mar 2007 16:34:51 +0100 From: "A. Kretschmer" To: pgsql-performance@postgresql.org Subject: Re: Estimate the size of the SQL file generated by pg_dump utility Message-ID: <20070305153451.GB29211@a-kretschmer.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! User-Agent: Mutt/1.5.9i X-Provags-ID: kundenserver.de abuse@kundenserver.de login:51ea9561fc3f6d9539a2acd743e4748c X-Provags-ID2: V01U2FsdGVkX1+8fHo+hkgHVvC5k8Vany1BfsL+rxxvtLs1Wpc KI0SZyFBWeYEZAPLSlubJ51nA+/5Ku6RCMAZ78G+d18y9WzBX3 i0PmUIgxw8oMqiXOu3X8TqoEuZ4syOC X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.325 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_HELO_PASS X-Spam-Level: X-Archive-Number: 200703/90 X-Sequence-Number: 23495 am Mon, dem 05.03.2007, um 20:25:21 +0530 mailte Ravindran G-TLS,Chennai. folgendes: > Dear All, > > I have to take backup of a database as a SQL file using the pg_dump utility and > I have to check the disk space > > before taking the backup. Hence I need to estimate the size of the pg_dump > output. You can take a empty backup by pipe the output to wc -c. Is this a solution for you? You can see the result size in bytes. Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net