[Pkg-postgresql-public] Bug#877920: postgresql-common: pg_upgradecluster 9.6 -> 10 fails (locale problem)

Karsten Hilbert Karsten.Hilbert at gmx.net
Sat Oct 7 15:21:48 UTC 2017


On Sat, Oct 07, 2017 at 04:40:24PM +0200, Christoph Berg wrote:

> Re: Karsten Hilbert 2017-10-07 <20171007132123.7eqyzz7455f5xipx at hermes.hilbert.loc>
> > 	root at 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.

Yes, it does get one step further.

> >     chomp $ctype;
> >     chomp $collate;
> >     print STDERR "$ctype / $collate\n";
> >     return ($ctype, $collate) unless $?;
> 
> I wonder why $? is non-zero even if the $collate extraction worked.

Strangely enough:

    chomp $ctype;
    chomp $collate;
    print STDERR "$ctype / $collate\n";
    print STDERR "$?\n";
    return ($ctype, $collate) unless $?;
    return (undef, undef);

produces this:

	root at hermes:~# pg_upgradecluster 9.6 main
	de_DE.UTF-8 / de_DE.UTF-8
	0
	Error: could not get cluster locales

> Can you check if the upgrade works properly if you remove the "unless"?

Will do.

Karsten
-- 
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



More information about the Pkg-postgresql-public mailing list