The type "name" can be subscripted like an array to access the individual
"char" elements. But since a character stored in a "name" value isn't
necessarily one byte, this is incorrect. Does anything rely on this
facility, or would it be better to remove it for type "name"?
Here's an example that produces a failure:
$ export PGCLIENTENCODING=latin1
$ createdb -E UNICODE test
$ psql test
=> create table åland (a int);
=> create table überschall (b int);
=> select relname[0] from pg_class;
ERROR: Could not convert UTF-8 to ISO8859-1
--
Peter Eisentraut peter_e(at)gmx(dot)net