Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1x2c-0008TR-7P for pgsql-docs@arkaria.postgresql.org; Sat, 11 Jan 2014 11:47:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W1x2b-0007vF-Mw for pgsql-docs@arkaria.postgresql.org; Sat, 11 Jan 2014 11:47:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1x2a-0007to-7v for pgsql-docs@postgresql.org; Sat, 11 Jan 2014 11:47:48 +0000 Received: from mail-wg0-f43.google.com ([74.125.82.43]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1x2W-0001Ll-RS for pgsql-docs@postgresql.org; Sat, 11 Jan 2014 11:47:47 +0000 Received: by mail-wg0-f43.google.com with SMTP id k14so5054344wgh.22 for ; Sat, 11 Jan 2014 03:47:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=UFHNpF0zTkYHNFoS+VeyZAe/cK0Of74Gr/SbVV70cAo=; b=gfezyhufzp3XKsWBYFsBYOvnyAYiwEn9I0cCIyUpsDW9WD/TCVkCx7jBgm/4/TDueF Is3HH8q8w+ZIefMXN/FZWq2cWFpxFGzxRjuP6y6j8o0sbzcDEbUKyBRLdER7Oolrxb4x AWkT0XVsFFQmitENEBse76KU0eRCgNNGlSo7vfaWLLu0Soal0eT8Sz7iMMTD2pGUMfk7 StL7n4LuOaqJ/oVKseSyBn3IuZ13vjLUkQ5snDafCJ/0QYS8R/CcYCm1wpw0Wo3SsdqE H45wEAklv8CAuAtDdHxo3Is6x9qpLLQboQkse8NtEgxWpJtD4w5Rjucnku8fNJswaOVz 6GLg== X-Gm-Message-State: ALoCoQns5hiR34QwzN7alISyXpEu7/yc6aIX3PM4aqDBEt5ZkIXLnihFU2BKKqetu59/yHGlguqQ MIME-Version: 1.0 X-Received: by 10.194.78.210 with SMTP id d18mr13312355wjx.27.1389440863473; Sat, 11 Jan 2014 03:47:43 -0800 (PST) Received: by 10.194.188.10 with HTTP; Sat, 11 Jan 2014 03:47:43 -0800 (PST) In-Reply-To: <52D03988.6030609@agliodbs.com> References: <52D03988.6030609@agliodbs.com> Date: Sat, 11 Jan 2014 12:47:43 +0100 Message-ID: Subject: Re: Upgrading doc does not mention pg_restore at all From: Magnus Hagander To: Josh Berkus Cc: pgsql-docs Content-Type: multipart/alternative; boundary=047d7bfcecb61aab3c04efb069c3 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 --047d7bfcecb61aab3c04efb069c3 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jan 10, 2014 at 7:18 PM, Josh Berkus wrote: > Folks: > > http://www.postgresql.org/docs/9.3/static/upgrading.html > > ... no mention of pg_restore of any kind. Is there any reason why > someone (maybe me) *shouldn't* rewrite this to include pg_restore? > I can't see any reason - it definitely should mention it. Frankly, I think recommending psql to restore is a bad idea ... > Yes. And recommending pg_dumpall > sqlfile, but that goes hand in hand with that. It also says that the least-downtime way is to use pg_dumpall in a pipe to psql. That's clearly not correct, since it does not support parallel restore (or parallel dump). In short, +1 for you to write a patch that changes that. It could probably deserve a better descirption of pg_upgrade as well, and an outline of the differences. Right now we spend the majority of the page on pg_dump, and then just say "oh, with pg_upgrade it only takes minutes"... -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/ --047d7bfcecb61aab3c04efb069c3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On F= ri, Jan 10, 2014 at 7:18 PM, Josh Berkus <josh@agliodbs.com>= wrote:
Folks:

http://www.postgresql.org/docs/9.3/static/upgrading.html
... no mention of pg_restore of any kind. =A0Is there any reason why
someone (maybe me) *shouldn't* rewrite this to include pg_restore?
<= /blockquote>

I can't see any reason - it definitely = should mention it.
=A0

Frankly, I think recommending psql to restore is a bad idea ...

Yes. And recommending pg_dumpall > sqlfile, but= that goes hand in hand with that.

It also says th= at the least-downtime way is to use pg_dumpall in a pipe to psql. That'= s clearly not correct, since it does not support parallel restore (or paral= lel dump).=A0

In short, +1 for you to write a = patch that changes that.

It could probably deserve a better descirption of pg_upg= rade as well, and an outline of the differences. Right now we spend the maj= ority of the page on pg_dump, and then just say "oh, with pg_upgrade i= t only takes minutes"...

--
=A0Magnus Hagander
=A0Me: http://www.hagander.net/
=A0Work: http://www.redpil= l-linpro.com/
--047d7bfcecb61aab3c04efb069c3--