Postgres Database Backup Size

2019-08-11 Thread Shiwangini Shishulkar
Hi,

Here , we have first tried with .BAK backups. For, 43GB database-> the
backup size was ~86GB.

Then, I configured backup with .sql file. Here it was ~70GB for the same
database size.

Next, now our database size keeps increasing.  As well as backup size is
also increasing. Now, backup size is more than 100GB for 50GB database
size. Due to some business requirement , we need to restore each backup
daily.

Here, I'm taking backup via below sample statement:

pg_dump -U postgres -d welcome -f welcome_${DATE}.sql

I had also tried with compressed backups via -Fc. But, since it is
compressed, in case of restoration -> first it decompresses the backup and
restore it. Which again takes a lot of time.

Any way to reduce backup size of postgres backups or it's default behavior
of postgres to take backups which are double in size?

Thanks,
Shiwangini


postmaster utilization

2019-08-19 Thread Shiwangini Shishulkar
Hi,

We have scheduled postgres full backup on centos 7 machine. DB size is
around 66 GB. We observed while backup is running, postmaster CPU % reaches
to 90 - 100%,which results very strange behavior: that we are not able to
perform any DDL and DML on to the database during the time.
Please suggest a way to limit it's CPU utilization or else let us know how
we can access the database during the backup window. Please let us know on
priority since this is our prod database.
Get back to us in case of any query/detail.

Regards,
Shiwangini