Received: from correo.servidoresdns.net ([195.55.179.56]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f346sm858133 for ; Wed, 4 Apr 2001 02:54:48 -0400 (EDT) (envelope-from david.lizano@izanet.com) Received: from servidornt.izanet.com [195.55.250.69] by correo.servidoresdns.net with ESMTP (SMTPD32-6.04) id A4D716F800A6; Wed, 04 Apr 2001 08:53:11 +0200 Message-Id: <4.3.2.7.0.20010404085251.00c31180@192.168.1.1> X-Sender: sj7010@192.168.1.1 X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Wed, 04 Apr 2001 08:53:18 +0200 To: pgsql-admin@postgresql.org From: David Lizano Subject: Re: Recommended VACUM timing... Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200104/7 X-Sequence-Number: 1141 >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".