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 1h98y3-0004y9-2y for pgsql-general@arkaria.postgresql.org; Wed, 27 Mar 2019 13:51:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h98y1-00063M-VC for pgsql-general@arkaria.postgresql.org; Wed, 27 Mar 2019 13:51:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h98y1-000633-IK for pgsql-general@lists.postgresql.org; Wed, 27 Mar 2019 13:51:45 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h98xx-0001Vo-Vf for pgsql-general@postgresql.org; Wed, 27 Mar 2019 13:51:44 +0000 Received: from [10.8.0.101] ([185.40.248.10]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPSA (Nemesis) id 1Mzhzd-1gmv5W1hsP-00vgOc for ; Wed, 27 Mar 2019 14:51:39 +0100 Subject: Re: Upgrading PostgreSQL under Windows To: "pgsql-general@postgresql.org" References: <3234d269-d486-b010-e880-a3eb20853339@codata.eu> From: Thomas Kellerer Message-ID: Date: Wed, 27 Mar 2019 14:51:38 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: <3234d269-d486-b010-e880-a3eb20853339@codata.eu> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:brNgRMCcXfqV5DeSyFUybc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Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Arnaud L. schrieb am 27.03.2019 um 14:00: > 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 I typically set the connection method to "trust" in both pg_hba.conf files before starting pg_upgrade.