Re: Upgrading PostgreSQL under Windows

From: "Arnaud L(dot)" <arnaud(dot)listes(at)codata(dot)eu>
To: Kumar Prince NCS <kumar(dot)prince(at)ncs(dot)com(dot)sg>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Upgrading PostgreSQL under Windows
Date: 2019-03-27 13:00:28
Message-ID: 3234d269-d486-b010-e880-a3eb20853339@codata.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2019-03-27 13:51:38 Re: Upgrading PostgreSQL under Windows
Previous Message Tony Shelver 2019-03-27 10:48:09 Data entry / data editing tools (more end-user focus).