pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Recommended VACUM timing...
3+ messages / 3 participants
[nested] [flat]

* Recommended VACUM timing...
@ 2001-03-31 00:17 August Zajonc <junk-postgre@aontic.com>
  0 siblings, 0 replies; 3+ messages in thread

From: August Zajonc @ 2001-03-31 00:17 UTC (permalink / raw)
  To: pgsql-admin

For large tables that require a 24/7 uptime and see around 6-10 million
changes a day, how do I run VACUM without taking the database/table down.
Considering moving from MySQL, but can't quite understand how to run
PostgreSQL in a production enviroment properly.

August






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Recommended VACUM timing...
@ 2001-04-04 06:53 David Lizano <david.lizano@izanet.com>
  0 siblings, 0 replies; 3+ messages in thread

From: David Lizano @ 2001-04-04 06:53 UTC (permalink / raw)
  To: pgsql-admin


>For large tables that require a 24/7 uptime and see around 6-10 million
>changes a day, how do I run VACUM without taking the database/table down.
>Considering moving from MySQL, but can't quite understand how to run
>PostgreSQL in a production enviroment properly.


a) Using replication, you can "vacuum" one server meanwhile the other is 
working.

         There are two utilities for PostgreSQL v7.1 (eRServer and RServ 
v0.1), but I don't know the level of maturity of this utilities. I suppose 
that they aren't in production level.

b)      1.- Stop the postmaster daemon
         2.- Make a copy of the database files directly from the filesistem.
         3.- start the postmaster daemon.

         The second should stop the service a short time compared with 
"vacuumdb".




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE: Recommended VACUM timing...
@ 2001-04-04 16:43 Matthew <matt@ctlno.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Matthew @ 2001-04-04 16:43 UTC (permalink / raw)
  To: 'David Lizano' <david.lizano@izanet.com>; pgsql-admin

> >For large tables that require a 24/7 uptime and see around 6-10 million
> >changes a day, how do I run VACUM without taking the database/table down.
> >Considering moving from MySQL, but can't quite understand how to run
> >PostgreSQL in a production enviroment properly.
> 
> 
> a) Using replication, you can "vacuum" one server meanwhile the other is 
> working.
> 
>          There are two utilities for PostgreSQL v7.1 (eRServer and RServ 
> v0.1), but I don't know the level of maturity of this utilities. I suppose
> 
> that they aren't in production level.
> 
> b)      1.- Stop the postmaster daemon
>          2.- Make a copy of the database files directly from the
> filesistem.
>          3.- start the postmaster daemon.
> 
>          The second should stop the service a short time compared with 
> "vacuumdb".
> 
	vacuumdb does not stop the database. The only potential problem is
that some queries will get held up on the a lock while the vacuum is going
on, but the locks are only one table at a time.  option b presented above
does not address vacuum issues, it only addresses backup issues which was
not the question at hand.  If his database is getting 6-10 million changes a
day there is a lot of space he needs to reclaim.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-04-04 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-31 00:17 Recommended VACUM timing... August Zajonc <junk-postgre@aontic.com>
2001-04-04 06:53 Re: Recommended VACUM timing... David Lizano <david.lizano@izanet.com>
2001-04-04 16:43 RE: Recommended VACUM timing... Matthew <matt@ctlno.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