pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arnaud L. <arnaud.listes@codata.eu>
To: Kumar Prince NCS <kumar.prince@ncs.com.sg>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Upgrading PostgreSQL under Windows
Date: Wed, 27 Mar 2019 14:00:28 +0100
Message-ID: <3234d269-d486-b010-e880-a3eb20853339@codata.eu> (raw)
In-Reply-To: <SG2PR02MB357531E90FAD65D3D88E68F4BC580@SG2PR02MB3575.apcprd02.prod.outlook.com>
References: <SG2PR02MB357531E90FAD65D3D88E68F4BC580@SG2PR02MB3575.apcprd02.prod.outlook.com>

Le 27/03/2019 à 07:02, Kumar Prince NCS a écrit :
> We are  Upgrading PostgreSQL under Windows from v9.3 to 9.5. Following 
> steps from https://www.postgresql.org/docs/10/pgupgrade.html
> 
> We are using PostgreSQL database for confluence application.
> 
> While running Step 9 , there is command to set path with postgres user. 
> As per installation of postgres database  , we haven’t created 
> “postgres” user on windows.
> 
> When we ran pg_upgrade.exe we are getting below error

You need to specify the user used for migration with the appropriate 
command line option, for instance "-U postgres".
Othewise pg_upgrade will try to connect with your OS username, which 
obviously won't work.

Since you can't specify a password in pg_upgrade's command, you will 
also need to provide authentication informations in a pgpass.conf file 
as per https://www.postgresql.org/docs/9.5/libpq-pgpass.html

Regards
--
Arnaud





view thread (3+ messages)  latest in thread

Message-ID: <3234d269-d486-b010-e880-a3eb20853339@codata.eu>
Permalink:  ../3234d269-d486-b010-e880-a3eb20853339@codata.eu/
Also on:    postgresql.org/message-id/3234d269-d486-b010-e880-a3eb20853339@codata.eu

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: arnaud.listes@codata.eu, kumar.prince@ncs.com.sg
  Subject: Re: Upgrading PostgreSQL under Windows
  In-Reply-To: <3234d269-d486-b010-e880-a3eb20853339@codata.eu>
  References: <SG2PR02MB357531E90FAD65D3D88E68F4BC580@SG2PR02MB3575.apcprd02.prod.outlook.com> <3234d269-d486-b010-e880-a3eb20853339@codata.eu>

* 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