pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-performance@postgresql.org
Subject: Re: Estimate the size of the SQL  file generated by pg_dump utility
Date: Mon, 5 Mar 2007 16:34:51 +0100
Message-ID: <20070305153451.GB29211@a-kretschmer.de> (raw)
In-Reply-To: <CE54F2377C0FB8439A290BF5A88BF13D021C59EB@CHN-HCLT-EVS01.HCLT.CORP.HCL.IN>
References: <CE54F2377C0FB8439A290BF5A88BF13D021C59EB@CHN-HCLT-EVS01.HCLT.CORP.HCL.IN>

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



view thread (10+ messages)  latest in thread

Message-ID: <20070305153451.GB29211@a-kretschmer.de>
Permalink:  ../20070305153451.GB29211@a-kretschmer.de/
Also on:    postgresql.org/message-id/20070305153451.GB29211@a-kretschmer.de

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: andreas.kretschmer@schollglas.com
  Subject: Re: Estimate the size of the SQL  file generated by pg_dump utility
  In-Reply-To: <20070305153451.GB29211@a-kretschmer.de>

* 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