Fix incorrect encoding-aware name truncation in makeArrayTypeName().
truncate_identifier won't do anything if the passed-in strlen is already
less than NAMEDATALEN, which it always would be given the strlcpy usage.
This has been broken since the arrays-of-composite-types code went in.
Arguably truncate_identifier is suffering from excessive optimization
and should always process the string, but for the moment I'll take the
more localized patch.
Per bug #4987.
pg_type.c (r184.108.40.206 -> r220.127.116.11)
pgsql-committers by date
|Next:||From: Tom Lane||Date: 2009-08-16 19:55:21|
|Subject: pgsql: Fix imprecise documentation of random(): it never returns 1.0.|
|Previous:||From: Tom Lane||Date: 2009-08-16 18:14:39|
|Subject: pgsql: Fix incorrect encoding-aware name truncation in |