pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedUpgrading PostgreSQL under Windows
3+ messages / 3 participants
[nested] [flat]
* Upgrading PostgreSQL under Windows
@ 2019-03-27 06:02 Kumar Prince NCS <kumar.prince@ncs.com.sg>
2019-03-27 13:00 ` Re: Upgrading PostgreSQL under Windows Arnaud L. <arnaud.listes@codata.eu>
0 siblings, 1 reply; 3+ messages in thread
From: Kumar Prince NCS @ 2019-03-27 06:02 UTC (permalink / raw)
To: pgsql-general; +Cc: #CREST_Maint_TS <CREST_Maint_TS@ncs.com.sg>
Hi Team,
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
[cid:image001.png@01D4E4A4.91358400]
Can you please suggest how we can resolve this issue ?
Thanks and Regards
-----------------
Kumar Prince
SAP Competency Centre
NCS Pte. Ltd. (A member of the SingTel Group)
5 Ang Mo Kio Street 62, NCS Hub, Singapore 569141 | Reg.No.198101793G
T +65.6556 6950 | M +65.87133211| E kumar.prince@ncs.com.sg | W www.ncs.com.sg
Attachments:
image001.png (image/png, 20.7K) download
view image
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Upgrading PostgreSQL under Windows
2019-03-27 06:02 Upgrading PostgreSQL under Windows Kumar Prince NCS <kumar.prince@ncs.com.sg>
@ 2019-03-27 13:00 ` Arnaud L. <arnaud.listes@codata.eu>
2019-03-27 13:51 ` Re: Upgrading PostgreSQL under Windows Thomas Kellerer <spam_eater@gmx.net>
0 siblings, 1 reply; 3+ messages in thread
From: Arnaud L. @ 2019-03-27 13:00 UTC (permalink / raw)
To: Kumar Prince NCS <kumar.prince@ncs.com.sg>; 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Upgrading PostgreSQL under Windows
2019-03-27 06:02 Upgrading PostgreSQL under Windows Kumar Prince NCS <kumar.prince@ncs.com.sg>
2019-03-27 13:00 ` Re: Upgrading PostgreSQL under Windows Arnaud L. <arnaud.listes@codata.eu>
@ 2019-03-27 13:51 ` Thomas Kellerer <spam_eater@gmx.net>
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Kellerer @ 2019-03-27 13:51 UTC (permalink / raw)
To: pgsql-general
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-03-27 13:51 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-03-27 06:02 Upgrading PostgreSQL under Windows Kumar Prince NCS <kumar.prince@ncs.com.sg>
2019-03-27 13:00 ` Arnaud L. <arnaud.listes@codata.eu>
2019-03-27 13:51 ` Thomas Kellerer <spam_eater@gmx.net>
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