pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Hiroshi Saito <z-saito@guitar.ocn.ne.jp>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Solution of the file name problem of copy on windows.
Date: Wed, 08 Apr 2009 19:31:08 +0900
Message-ID: <49DC7CEC.80703@tpf.co.jp> (raw)
In-Reply-To: <18205.1239126376@sss.pgh.pa.us>
References: <C96B1306C7B243E9BFDFE88F8DB405C6@HIRO57887DE653>
	<18205.1239126376@sss.pgh.pa.us>

Tom Lane wrote:
> "Hiroshi Saito" <z-saito@guitar.ocn.ne.jp> writes:
>> I want to solve one problem before the release of 8.4.
>> However, since it also seems to be the new feature,
>> if not enough for 8.4, you may suggest that it is 8.5.
> 
> I'm not too clear on what this is really supposed to accomplish, but
> we are hardly going to put code like that into every single file access
> in Postgres, which is what seems to be the logical implication.
> Shouldn't we just tell people to use a database encoding that matches
> their system environment?

Unfortunately (as usual) under Japanese Windows there's no database
encoding that matches the system environment.
As for the file name in COPY command, there's little meaning to
convert it to the server encoding because the file name is irrelevant
to the database. Because Windows is Unicode(UTF-16) based, it seems
natural to convert the file name to wide characters once.

regards,
Hiroshi Inoue




view thread (12+ messages)  latest in thread

Message-ID: <49DC7CEC.80703@tpf.co.jp>
Permalink:  ../49DC7CEC.80703@tpf.co.jp/
Also on:    postgresql.org/message-id/49DC7CEC.80703@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: inoue@tpf.co.jp, tgl@sss.pgh.pa.us, z-saito@guitar.ocn.ne.jp
  Subject: Re: Solution of the file name problem of copy on windows.
  In-Reply-To: <49DC7CEC.80703@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox