Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmgPv-0007nj-UQ for pgsql-docs@arkaria.postgresql.org; Thu, 24 Jan 2019 14:55:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmgPt-0001ss-B4 for pgsql-docs@arkaria.postgresql.org; Thu, 24 Jan 2019 14:55:41 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmgPt-0001sf-5S for pgsql-docs@lists.postgresql.org; Thu, 24 Jan 2019 14:55:41 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmgPm-0007XA-Iu for pgsql-docs@lists.postgresql.org; Thu, 24 Jan 2019 14:55:40 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1gmgPl-00074D-2n; Thu, 24 Jan 2019 09:55:33 -0500 Date: Thu, 24 Jan 2019 09:55:33 -0500 From: Bruce Momjian To: blaiseg07@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Upgrading a PostgreSQL Cluster Documentation Message-ID: <20190124145533.GE8334@momjian.us> References: <154548518652.15411.5860233289680037645@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <154548518652.15411.5860233289680037645@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, Dec 22, 2018 at 01:26:26PM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/10/upgrading.html > Description: > > https://www.postgresql.org/docs/10/upgrading.html > > It would be helpful to make a note for Linux users that you have login > interactively as the postgres user ie. "sudo -u postgres -i" before running > such commands as "pg_dumpall -p 5432 | psql -d postgres -p 5433". Otherwise > you'll receive the template1 error about the user. Uh, you can do: pg_dumpall -U postgres -p 5432 which is simpler. The point is that the database user should be postgres, not necessarily the operating system user, though that also works. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +