Re: [HACKERS] fatal copy in/out error (6.5.3)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Robinson <robinson(at)netrinsics(dot)com>
Cc: pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] fatal copy in/out error (6.5.3)
Date: 2000-01-24 16:06:55
Message-ID: 25300.948730015@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Robinson <robinson(at)netrinsics(dot)com> writes:
> testdb=> create table foo (word varchar(30));
> CREATE
> testdb=> insert into foo values ('\217\210');
> INSERT 2337289 1
> testdb=> copy "foo" to '/usr/local/pgsql/foo.out';
> COPY
> testdb=> \q
> % od -c foo.out
> 0000000 217 210 \0 \n
> 0000004

Hmm. I get
0000000 217 210 \n
0000003
with either current sources or 6.5.3. I don't have MULTIBYTE nor
USE_LOCALE turned on, though. What is your configuration exactly?

This looks to me like something is deciding that \217 must be the
start of a 3-byte multibyte character... in which case, it should have
appeared that way in your database, I think.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-01-24 16:29:20 Re: [HACKERS] column aliases
Previous Message Thomas Lockhart 2000-01-24 15:58:09 Re: [HACKERS] Re: Status on 7.0