Skip site navigation (1) Skip section navigation (2)

set_client_encoding is broken

From: Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: set_client_encoding is broken
Date: 2009-08-31 07:05:33
Message-ID: 1251702333.1312.63.camel@localhost (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
If you look on gothic_moth and comet_moth

you can see following error:

../../src/test/regress/pg_regress --inputdir=.
--dbname=contrib_regression --multibyte=UTF8 --no-locale  unaccent
(using postmaster on Unix socket, default port)
============== dropping database "contrib_regression" ==============
psql: FATAL:  invalid value for parameter "client_encoding": "UTF8"
command failed: "/zfs_data/home/postgres/buildfarm/gothic_moth/HEAD/inst/bin/psql" -X -c "DROP DATABASE IF EXISTS \"contrib_regression\"" "postgres"
gmake[1]: *** [installcheck] Error 2
gmake[1]: Leaving directory `/zfs_data/home/postgres/buildfarm/gothic_moth/HEAD/pgsql.4092/contrib/unaccent'

[4a9ae815.696e:1] LOG:  connection received: host=[local]
[4a9ae815.696e:2] LOG:  connection authorized: user=postgres database=postgres
[4a9ae815.696e:3] LOG:  conversion between UTF8 and LATIN2 is not supported
[4a9ae815.696e:4] FATAL:  invalid value for parameter "client_encoding": "UTF8"

The assign_client_encoding->SetClientEncoding fails to find conversion function.

I guess that flat auth file patch
is culprint.

It seems that backend does not have loaded pg_encoding yet when
SetClientEncoding is processed.



pgsql-hackers by date

Next:From: Stefan KaltenbrunnerDate: 2009-08-31 08:08:49
Subject: Re: LWLock Queue Jumping
Previous:From: KaiGai KoheiDate: 2009-08-31 05:08:33
Subject: Re: [PATCH] Largeobject access controls

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group