Re: dbsize & pg_dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: dbsize & pg_dump

Please disregard this question.  I’m using pg_dump –F c which compresses the data a it backs it up.

 

Tim

 

 

-----Original Message-----
From: pgsql-admin-owner@xxxxxxxxxxxxxx [mailto:pgsql-admin-owner@xxxxxxxxxxxxxx]On Behalf Of mcelroy, tim
Sent: Tuesday, April 25, 2006 4:40 PM
To: 'pgsql-admin@xxxxxxxxxxxxxx'
Subject: [ADMIN] dbsize & pg_dump

 

Good afternoon,

Probably an easy question but why are the file sizes differ so much between these two tools?

For example: 

A backup using pg_dump of our largest DB creates a file 384MB in size

Using the following SQL code utilizing dbsize I get the following:

FIX1=# SELECT D1.pg_size_pretty AS "FIX1_DB_SIZE"

FIX1-# FROM (SELECT pg_size_pretty(database_size('FIX1'))) D1;

 FIX1_DB_SIZE

--------------

 3832 MB

(1 row)

Is it safe to assume that pg_dump does a compression of the data?

Thanks

Tim


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux