X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id A4827F0069 for ; Sun, 8 Jun 2003 10:49:08 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 23044-05 for ; Sun, 8 Jun 2003 10:48:58 +0000 (GMT) Received: from smtp.noos.fr (nan-smtp-01.noos.net [212.198.2.70]) by svr1.postgresql.org (Postfix) with ESMTP id 9DB20EFFF1 for ; Sun, 8 Jun 2003 10:48:57 +0000 (GMT) Received: (qmail 15894305 invoked by uid 0); 8 Jun 2003 10:48:58 -0000 Received: from unknown (HELO gmendola) ([212.198.40.246]) (envelope-sender ) by 212.198.2.70 (qmail-ldap-1.03) with SMTP for ; 8 Jun 2003 10:48:58 -0000 Message-ID: <002801c32dab$8dfe80f0$10d4a8c0@mm.eutelsat.org> From: "Mendola Gaetano" To: "Jonathan Gardner" , "David A. Leedom" , References: <5.2.0.9.0.20030605075052.028d9888@mail.hightowergroup.com> <200306051322.43748.jgardner@jonathangardner.net> Subject: Re: Backup and Restore Date: Sun, 8 Jun 2003 12:48:52 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Archive-Number: 200306/75 X-Sequence-Number: 9066 "Jonathan Gardner" wrote: > This is also a cheap way to "vacuum" the database: > > # pg_dump | gzip > dump.gz > # dropdb > # createdb > # gunzip -c dump.gz > psql Yes specially when you have a dump of about 1 GB and you manage a service 24/24 7/7!! The only cheap way to vacuum is: #vacuumdb if you want update the statistics too: #vacuumdb -z and if you can handle to have an exclusive lock on tables: #vacuumdb -f -z the only think that I suggest for bigs table with index is to reindex that table: #psql -t -c "reindex table " Regards Gaetano Mendola