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 1h98AY-0002Jm-EH for pgsql-general@arkaria.postgresql.org; Wed, 27 Mar 2019 13:00:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h98AX-0004J4-2T for pgsql-general@arkaria.postgresql.org; Wed, 27 Mar 2019 13:00:37 +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 1h98AW-0004Ij-Lx for pgsql-general@lists.postgresql.org; Wed, 27 Mar 2019 13:00:36 +0000 Received: from serveurmail01.codata.be ([82.146.123.190]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h98AT-0000Cb-Gi for pgsql-general@postgresql.org; Wed, 27 Mar 2019 13:00:35 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id 0C516A0005; Wed, 27 Mar 2019 14:00:30 +0100 (CET) X-Virus-Scanned: amavisd-new at serveurmail01.codata.be Received: from serveurmail01.codata.be ([127.0.0.1]) by localhost (serveurmail01.codata.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2Z6OQN8wMSpr; Wed, 27 Mar 2019 14:00:29 +0100 (CET) Received: from [10.0.0.100] (38-179-112-217.fix.adsl.belcenter.be [217.112.179.38]) by serveurmail01.codata.be (Postfix) with ESMTPSA id 72FA1A0004; Wed, 27 Mar 2019 14:00:29 +0100 (CET) Subject: Re: Upgrading PostgreSQL under Windows To: Kumar Prince NCS , "pgsql-general@postgresql.org" References: Reply-To: arnaud.listes@codata.eu From: "Arnaud L." Message-ID: <3234d269-d486-b010-e880-a3eb20853339@codata.eu> Date: Wed, 27 Mar 2019 14:00:28 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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