Re: Karsten Hilbert 2017-10-07 <20171007132123.7eqyzz7455f5x...@hermes.hilbert.loc> > root@hermes:/usr/share/perl5# pg_upgradecluster 9.6 main > de_DE.UTF-8 / de_DE.UTF-8 > Error: could not get cluster locales
Hmm. At least the uninitialized value warning is gone now. > I also added a print statement: > > chomp $ctype; > chomp $collate; > print STDERR "$ctype / $collate\n"; > return ($ctype, $collate) unless $?; > return (undef, undef); > > which produces the > > de_DE.UTF-8 / de_DE.UTF-8 I wonder why $? is non-zero even if the $collate extraction worked. Can you check if the upgrade works properly if you remove the "unless"? chomp $ctype; chomp $collate; print STDERR "$ctype / $collate\n"; return ($ctype, $collate); Christoph