Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id A9D409F9271 for ; Mon, 20 Aug 2007 15:54:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 68219-02-3 for ; Mon, 20 Aug 2007 15:54:53 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by postgresql.org (Postfix) with ESMTP id 19F4B9F97CB for ; Mon, 20 Aug 2007 15:53:41 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.13.8/8.13.8) with ESMTP id l7KIrbjS068012 for ; Mon, 20 Aug 2007 15:53:37 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.13.8/8.13.8/Submit) id l7KIc9Gx063081 for pgsql-admin@postgresql.org; Mon, 20 Aug 2007 15:38:09 -0300 (ADT) (envelope-from news) From: Erwin Brandstetter X-Newsgroups: pgsql.admin Subject: vacuumdb for a number of tables Followup-To: pgsql.admin Date: Mon, 20 Aug 2007 11:38:10 -0700 Organization: http://groups.google.com Lines: 20 Message-ID: <1187635090.741747.9110@d55g2000hsg.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: d55g2000hsg.googlegroups.com; posting-host=62.116.9.170; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 To: pgsql-admin@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/230 X-Sequence-Number: 26561 Hi! I want to vacuum analyze a number of tables in a given database (on port 5432) from a shell script. There is no need to process the whole database. Using vacuumdb -d mydb -t mytab1 -t mytab2 -t mytab3 -fzp 5432; silently operates on the last tablename given only. 'mytab3' in the example above. So, is this the only way to do it, or am I missing something? vacuumdb -d mydb -t mytab1 -fzp 5432 vacuumdb -d mydb -t mytab2 -fzp 5432 vacuumdb -d mydb -t mytab3 -fzp 5432 Regards Erwin