pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: blaiseg07@gmail.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: Upgrading a PostgreSQL Cluster Documentation
Date: Thu, 24 Jan 2019 09:55:33 -0500
Message-ID: <20190124145533.GE8334@momjian.us> (raw)
In-Reply-To: <154548518652.15411.5860233289680037645@wrigleys.postgresql.org>
References: <154548518652.15411.5860233289680037645@wrigleys.postgresql.org>

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  <bruce@momjian.us>        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 +




view thread (2+ messages)

Message-ID: <20190124145533.GE8334@momjian.us>
Permalink:  ../20190124145533.GE8334@momjian.us/
Also on:    postgresql.org/message-id/20190124145533.GE8334@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: bruce@momjian.us, blaiseg07@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Upgrading a PostgreSQL Cluster Documentation
  In-Reply-To: <20190124145533.GE8334@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox