pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedQuery About vacuum and pg_dump
2+ messages / 2 participants
[nested] [flat]
* Query About vacuum and pg_dump
@ 2003-05-08 04:30 PRAGATI SAVAIKAR <pragati@phildigital.com>
2003-05-14 15:34 ` Re: Query About vacuum and pg_dump Stephan Szabo <sszabo@megazone23.bigpanda.com>
0 siblings, 1 reply; 2+ messages in thread
From: PRAGATI SAVAIKAR @ 2003-05-08 04:30 UTC (permalink / raw)
To: pgsql-admin
Hi!!!!!
We have got "PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC
2.96 " running on Linux 7.3.
There are 2 databases , each of size 16 GB.
I have 2 queries regarding vacuum and pg_dump.
VACUUM :
We run "vacuum " for each of the table in the database on daily basis.
But it doesn't seem to reduce the disk space.
We also tried using "vacuum analyze". But no change was observed.
pg_dump:
we use pg_dump command to take the backup of the databases .
I would like to know, how will it affect if I run the pg_dump while the
tables are being used or when the transactions are being processed.
Thanks in advance and Waiting for your speedy reply.
--
Regards,
Pragati
Whatever you do will be insignificant, but it is very important that you do it.
-- Gandhi
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Query About vacuum and pg_dump
2003-05-08 04:30 Query About vacuum and pg_dump PRAGATI SAVAIKAR <pragati@phildigital.com>
@ 2003-05-14 15:34 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
0 siblings, 0 replies; 2+ messages in thread
From: Stephan Szabo @ 2003-05-14 15:34 UTC (permalink / raw)
To: PRAGATI SAVAIKAR <pragati@phildigital.com>; +Cc: pgsql-admin
On Thu, 8 May 2003, PRAGATI SAVAIKAR wrote:
> We have got "PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC
> 2.96 " running on Linux 7.3.
> There are 2 databases , each of size 16 GB.
>
> I have 2 queries regarding vacuum and pg_dump.
>
> VACUUM :
>
> We run "vacuum " for each of the table in the database on daily basis.
> But it doesn't seem to reduce the disk space.
> We also tried using "vacuum analyze". But no change was observed.
Vacuum (without full) will generally only mark the free space as usable by
later updates or inserts. Vacuum full will attempt to move rows around in
order to shrink the actual table, however it takes an exclusive lock while
doing so.
> pg_dump:
> we use pg_dump command to take the backup of the databases .
> I would like to know, how will it affect if I run the pg_dump while the
> tables are being used or when the transactions are being processed.
IIRC, pg_dump runs all its queries in a serializable transaction, so
inserts, updates and deletes to a table shouldn't affect the dumped data
for that table.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-05-14 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08 04:30 Query About vacuum and pg_dump PRAGATI SAVAIKAR <pragati@phildigital.com>
2003-05-14 15:34 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
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