[HACKERS] RE: [BUGS] Problem with 7.0.3 dump - 7.1b4 restore

2001-04-16 Thread Rainer Mager

I noticed that 7.1 has officially been released. Does anyone know the status
of the bug I reported regarding encoding problems when dumping a 7.0 db an
restoring on 7.1?


Thanks,

--Rainer


---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]



RE: [BUGS] Problem with 7.0.3 dump - 7.1b4 restore

2001-04-11 Thread Rainer Mager

I just tested a bug I originally fount in 7.1b4 with the new 7.1RC3 and it
still exists. I would consider this a major bug because I know of no work
around.

Basically what happens is that a dump of an existing Unicode database (from
7.03) has a double-byte hyphen character that becomes \255 in the dump. When
the data is imported into the new 7.1 database it seems to correctly appear
(verified via psql) BUT when reading this record via JDBC the data is
truncated at this character.

I communicated briefly with Ishii-san regarding this a while back but I
never followed up. Considering RC3 is now out I thought I should revisit the
issue. It should be easy to test by editing and postgres Unicode database
dump and putting \255 somewhere in a string. I'm not sure if it matters but
the dump was done with "-dn" flags.

Thanks,

--Rainer


 -Original Message-
 From: Tatsuo Ishii [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 28, 2001 11:02 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: [BUGS] Problem with 7.0.3 dump - 7.1b4 restore


  Attached is a single INSERT that shows the problem. The
 character after the
  word "Fiber" truncates the text when using JDBC. NOTE, the text
 IS in the
  database, that is, the dump/restore seems ok, the problem is
 when trying to
  read the text later. The database is UTF8 and I just tested with beta 5.
 
  Oh, BTW, if I try to set (INSERT) this same character via JDBC and then
  retreive it again then everything is fine.

 I have tested your data using psql:

 unicode=# create table pr_prop_info(i1 int, i2 int, i3 int, t text);
 CREATE
 unicode=# \encoding LATIN1
 unicode=# \i example.sql
 INSERT 2378114 1
 unicode=# select * from pr_prop_info;

 The character after the word "Fiber" looks like "Optic Cable". So as
 long as the server/client encoding set correctly, it looks ok. I guess
 we have some problems with JDBC driver. Unfortunately I am not a Java
 guru at all. Can anyone look into our JDBC driver regarding this
 problem?
 --
 Tatsuo Ishii


---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster



RE: [BUGS] Problem with 7.0.3 dump - 7.1b4 restore

2001-02-23 Thread Rainer Mager

Well, I tried the patch and the newly produced dump was identical to the bad
dump from before, so the patch had no affect. I will try to trim it down to
a reasonably small file and email it to you.

--Rainer

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Tatsuo Ishii
 Sent: Friday, February 23, 2001 10:32 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [BUGS] Problem with 7.0.3 dump - 7.1b4 restore
 This might be related to a known bug with 7.0.x. Can you grab a patch
 from ftp://ftp.sra.co.jp/pub/cmd/postgres/7.0.3/patches/copy.patch.gz
 and try again?

 Or even better, can you give me a minimum set of data that reproduces
 your problem?
 --
 Tatsuo Ishii