Click here to Skip to main content
15,887,683 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: The weird, wasteful world of IoT Pin
englebart5-Jun-22 14:10
professionalenglebart5-Jun-22 14:10 
GeneralRe: The weird, wasteful world of IoT Pin
honey the codewitch5-Jun-22 18:50
mvahoney the codewitch5-Jun-22 18:50 
GeneralRe: The weird, wasteful world of IoT Pin
Daniel Pfeffer5-Jun-22 19:14
professionalDaniel Pfeffer5-Jun-22 19:14 
GeneralRe: The weird, wasteful world of IoT Pin
honey the codewitch6-Jun-22 1:00
mvahoney the codewitch6-Jun-22 1:00 
GeneralRe: The weird, wasteful world of IoT Pin
Daniel Pfeffer6-Jun-22 7:10
professionalDaniel Pfeffer6-Jun-22 7:10 
GeneralRe: The weird, wasteful world of IoT Pin
honey the codewitch6-Jun-22 7:12
mvahoney the codewitch6-Jun-22 7:12 
GeneralRe: The weird, wasteful world of IoT Pin
Peter Shaw8-Jun-22 9:45
professionalPeter Shaw8-Jun-22 9:45 
GeneralThe pg_upgrade blues Pin
RickZeeland3-Jun-22 22:56
mveRickZeeland3-Jun-22 22:56 
This week I tried to upgrade our Postgres 10 Windows installation to Postgres 14, following the official instructions here:
PostgreSQL: Documentation: 14: pg_upgrade[^]

Sadly this turned out to be no walk in the park, and cost me several days to get it working.
First problem was this command: RUNAS /USER:postgres "CMD.EXE"
We don't have a Windows user "postgres" on our installations, and as far as I known the default install does not create one !

Finding helpful information on the internet was not easy, a lot of articles appear to be Linux only and the authors don't even bother to mention which platform they are using.

Bypassed the user problem, by skipping the RUNAS command and setting an environment variable PGPASSWORD=xxxxxxx
Similar to the example here:
windows - Error: Consult the last few lines of "pg_upgrade_dump_1.log" - Stack Overflow[^]

But although there could be no rights problems as I had given all rights to the Postgres directories, still got an error at the end of the upgrade process.
It turned out to be an encryption problem, the old pg_hba.conf file used "md5" and the new pg_hba.conf used a default setting of "scram-sha-256".
See answer here: postgresql - upgrade from postgres 12 to 13 causes user authority problem - Stack Overflow[^]

Changed all occurrences of "scram-sha-256" to "md5", and everything worked!
Roll eyes | :rolleyes:
GeneralRe: The pg_upgrade blues Pin
honey the codewitch3-Jun-22 23:54
mvahoney the codewitch3-Jun-22 23:54 
GeneralRe: The pg_upgrade blues Pin
RickZeeland4-Jun-22 0:06
mveRickZeeland4-Jun-22 0:06 
GeneralRe: The pg_upgrade blues Pin
Peter Shaw8-Jun-22 10:06
professionalPeter Shaw8-Jun-22 10:06 
PraiseRe: The pg_upgrade blues Pin
RickZeeland8-Jun-22 19:16
mveRickZeeland8-Jun-22 19:16 
GeneralRe: The pg_upgrade blues Pin
Peter Shaw9-Jun-22 3:31
professionalPeter Shaw9-Jun-22 3:31 
GeneralWordle 350 Pin
Amarnath S3-Jun-22 14:33
professionalAmarnath S3-Jun-22 14:33 
GeneralRe: Wordle 350 Pin
Peter_in_27803-Jun-22 16:09
professionalPeter_in_27803-Jun-22 16:09 
GeneralRe: Wordle 350 Pin
OriginalGriff3-Jun-22 18:41
mveOriginalGriff3-Jun-22 18:41 
GeneralRe: Wordle 350 Pin
0x01AA3-Jun-22 20:57
mve0x01AA3-Jun-22 20:57 
GeneralRe: Wordle 350 Pin
pkfox3-Jun-22 21:30
professionalpkfox3-Jun-22 21:30 
GeneralRe: Wordle 350 Pin
Sander Rossel3-Jun-22 21:57
professionalSander Rossel3-Jun-22 21:57 
GeneralRe: Wordle 350 Pin
0x01AA4-Jun-22 1:01
mve0x01AA4-Jun-22 1:01 
GeneralRe: Wordle 350 Pin
Sander Rossel5-Jun-22 3:16
professionalSander Rossel5-Jun-22 3:16 
GeneralRe: Wordle 350 Pin
Vivi Chellappa3-Jun-22 22:05
professionalVivi Chellappa3-Jun-22 22:05 
GeneralRe: Wordle 350 Pin
Greg Utas4-Jun-22 0:18
professionalGreg Utas4-Jun-22 0:18 
GeneralRe: Wordle 350 Pin
Peter_in_27804-Jun-22 0:54
professionalPeter_in_27804-Jun-22 0:54 
GeneralRe: Wordle 350 Pin
FreedMalloc4-Jun-22 5:19
FreedMalloc4-Jun-22 5:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.