Re: Add encoding support to COPY

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Add encoding support to COPY
Дата
Msg-id 20090715182016.GM4551@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Add encoding support to COPY  (David Blewett <david@dawninglight.net>)
Список pgsql-hackers
David Blewett wrote:

> On Wed, Jul 15, 2009 at 12:17 PM, Tom Lane<tgl@sss.pgh.pa.us> wrote:
> > Well, it might make sense to allow an ENCODING option attached to a COPY
> > with a file source/destination.  I remain of the opinion that overriding
> > client_encoding on a transfer to/from the client is a bad idea.

> I could see a use case for remote client code to do a COPY to STDOUT,
> that is actually being redirected to a file. If the consensus is for
> local file-based operations only, however, I can structure the patch
> that way.

Yeah, the problem is that reading to/from files is only allowed to
superusers ...

(I'm not sure how this affects \copy in psql; probably something you
should investigate)

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bernd Helmle
Дата:
Сообщение: Re: Add encoding support to COPY
Следующее
От: Mike Wilson
Дата:
Сообщение: changing enumlabel from a NameData to text