Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aFuXF-0006VP-Gp for pgsql-docs@arkaria.postgresql.org; Mon, 04 Jan 2016 02:06:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aFuXF-0003ku-3X for pgsql-docs@arkaria.postgresql.org; Mon, 04 Jan 2016 02:06:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aFuWs-0002N5-Bd for pgsql-docs@postgresql.org; Mon, 04 Jan 2016 02:05:50 +0000 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aFuWo-0000ds-9G for pgsql-docs@postgresql.org; Mon, 04 Jan 2016 02:05:49 +0000 Received: by mail-pa0-x230.google.com with SMTP id yy13so96676012pab.3 for ; Sun, 03 Jan 2016 18:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-type; bh=z2+oyhyHKxf/sWwFpX5n0V+RxOKixKKakkL+oIurC4o=; b=rPrVIsUhajE0jmmOYA4wthaYXjVdgtOX/RFI28Lba16TdG9xro7V8gTc+88BvN8/V5 DGCIkE9jvXgKLkpzr3eNxmjjb4UjpUslfIPK360cqicAIjXeUpGx3D4OoYLXcfiZHGEk kAXHYwoV8j6NJNyKzn3vqjR8MN3ttn0+7RJgjyovx920b46NxS1yOCwBKl/ovcfd5jU0 V7HFbwtvIkcMB/2tTUZNlfHxpG2YhkV49fCBpWZu8H63nNTCe+oNlqBu5iUNcmzd4Ndg Rbf3EPmeFnG4RRMyZMsduKxXKu45A+cDGzw+KtyKItWOKbEiIs/nOmu1P50oTltJkXYS F8IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-type; bh=z2+oyhyHKxf/sWwFpX5n0V+RxOKixKKakkL+oIurC4o=; b=SxrkuCXFgiJ3jqH4Yn0O47Ai8BPsHo0iugu3CqYwnuXmO+hKipDxjk9J/+W1j/hngU dI0xP+WYpYg/tO/dhohf7WLsObzp7Gc6iXiv6YyKQTyLRY14O04x5z/5mvM6HyWl7dSE YzoV8dmPBMEBDZnSOEDaOv+1jCZ+B4tQ2IcqiyDnDuPOh34/5oQPKa77So9SO3TSbI3C 0b4Oqea/nQEF5sov0097sp9UQ5N1tbH29DLhwa0sL3N9L7O7T6jMk7dNaTphWeLUVF9a N3pEF8CTegDCiPfXRpkD+so1DCtTEf/CBoEQJA0t4mMENUOfFodflIiBpB3PM3z5MloZ 1+AQ== X-Gm-Message-State: ALoCoQn7kYz4t94iFJUTT9E/2O7OeAwpBPB+f8xg5zLOT0MpJwktcosgDS1MvPoX37+aPhNbniU+XHgJa+BM4kmhKcVDlidgJCTOyzjllmTsFA7P+Ln/Z8UiRD5qnmAKG5m5Fg8P1ANyZbtI7TuAOFJradR2b+7nWLr2UqLKskyJkfQ5aDxBimEL/sMVQpjCT1x2WdSfsl8B X-Received: by 10.67.6.1 with SMTP id cq1mr122221831pad.78.1451873143576; Sun, 03 Jan 2016 18:05:43 -0800 (PST) Received: from [192.168.1.2] (p5092-ipngn11301marunouchi.tokyo.ocn.ne.jp. [122.25.196.92]) by smtp.gmail.com with ESMTPSA id w15sm80453884pfa.25.2016.01.03.18.05.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Jan 2016 18:05:42 -0800 (PST) To: "pgsql-hackers@postgresql.org" , pgsql-docs@postgresql.org From: Ian Barwick Subject: Description tweak for vacuumdb X-Enigmail-Draft-Status: N1110 Message-ID: <5689D374.7080703@2ndquadrant.com> Date: Mon, 4 Jan 2016 11:05:40 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010404010001090304030804" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org This is a multi-part message in MIME format. --------------010404010001090304030804 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Like the docs say, vacuumdb is a "wrapper around the SQL command VACUUM" which I used to use in dim-and-distant pre-autovacuum days came for cronjobs, but until messing around with pg_upgrade recently I hadn't really had much use for it. Anyway, the docs also say "There is no effective difference between vacuuming and analyzing databases via this utility and via other methods for accessing the server", which IMHO seems a bit out-of-date as it now does two things which you can't do directly via e.g. psql: - generate statistics in stages (9.4) - parallel vacuum (9.5) Attached patches (for 9.4 and 9.5/HEAD) update the description to make clear that it now does a bit more than just execute a single command. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --------------010404010001090304030804 Content-Type: text/x-patch; name="doc-vacuumdb-94.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="doc-vacuumdb-94.patch" diff --git a/doc/src/sgml/ref/vacuumdb.sgml b/doc/src/sgml/ref/vacuumdb.sgml new file mode 100644 index 3ecd999..35e3d6f *** a/doc/src/sgml/ref/vacuumdb.sgml --- b/doc/src/sgml/ref/vacuumdb.sgml *************** PostgreSQL documentation *** 65,71 **** command . There is no effective difference between vacuuming and analyzing databases via this utility and via other methods for accessing the ! server. =20=20 --- 65,73 ---- command . There is no effective difference between vacuuming and analyzing databases via this utility and via other methods for accessing the ! server. However it does provide additional functionality for generating ! statistics in stages, which is useful when optimizing a newly populated ! database. =20=20 --------------010404010001090304030804 Content-Type: text/x-patch; name="doc-vacuumdb-head.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="doc-vacuumdb-head.patch" diff --git a/doc/src/sgml/ref/vacuumdb.sgml b/doc/src/sgml/ref/vacuumdb.sgml new file mode 100644 index 92b8984..d640887 *** a/doc/src/sgml/ref/vacuumdb.sgml --- b/doc/src/sgml/ref/vacuumdb.sgml *************** PostgreSQL documentation *** 65,71 **** command . There is no effective difference between vacuuming and analyzing databases via this utility and via other methods for accessing the ! server. =20=20 --- 65,73 ---- command . There is no effective difference between vacuuming and analyzing databases via this utility and via other methods for accessing the ! server. However it does provide additional functionality for generating ! statistics in stages, which is useful when optimizing a newly populated ! database, and for executing vacuum or analyze commands in parallel. =20=20 --------------010404010001090304030804 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --------------010404010001090304030804--