bytea and vacuum analyze on postgresql 7.3.4

Started by Michael Radziejover 22 years ago2 messagesbugs
Jump to latest

Hi,

I hit the following bug:

this is with a 7.3.4 database server (and psql client)
PGCLIENTENCODING="UTF-8"
and a utf-8 encoded database,

pensieve=> create table a(raw bytea);
CREATE TABLE
pensieve=> insert into a values('\770\711\056'::bytea);
INSERT 1112630 1
pensieve=> vacuum analyze a;
VACUUM
pensieve=> insert into a values('\770\711\056'::bytea);
INSERT 1112631 1
pensieve=> vacuum analyze a;
ERROR: Invalid UNICODE character sequence found (0xf8c92e)

I think bytea should accept ANY value and vaccuum analyze must
not complain about this.

Is this new to you?

Regards,

Michael

--
=============================================================================
Michael Radziej SuSE Linux AG phone +49-911-74053-0
IT Deutschherrenstr. 15-19 fax +49-911-3206727
(vormals "interne EDV") 90429 Nürnberg, Germany web http://www.suse.de
=============================================================================
Heute schon geändert? -- simply change

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Michael Radziej (#1)
Re: bytea and vacuum analyze on postgresql 7.3.4

Michael Radziej <mir@suse.de> writes:

I think bytea should accept ANY value and vaccuum analyze must
not complain about this.

This is fixed as of 7.4, I think (at least your example case doesn't
fail for me). 7.3 was a bit sloppy about how it treated entries in
pg_statistic ...

regards, tom lane