Re: Determining client_encoding from client locale - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Determining client_encoding from client locale
Date
Msg-id AANLkTi=qMsJYe-ReE28hMfnti0xSW0DBoZ3vck+rf59K@mail.gmail.com
Whole thread Raw
In response to Re: Determining client_encoding from client locale  (Susanne Ebrecht <susanne@2ndQuadrant.com>)
Responses Re: Determining client_encoding from client locale  (Susanne Ebrecht <susanne@2ndQuadrant.com>)
List pgsql-hackers
On 17 January 2011 12:58, Susanne Ebrecht <susanne@2ndquadrant.com> wrote:
> Hello,
>
> maybe i missed pre-discussion but ...
>
> I miss considering auto-detect of file encoding.
>
> A simple example:
> $ psql -f dump.sql db
>
> What happens when dump.sql is written by using
> another encoding?

That doesn't tend to be much of a problem in practice because pg_dump
will have the dump SET client_encoding as appropriate from the DB
encoding.

-- 
Regards,
Peter Geoghegan


pgsql-hackers by date:

Previous
From: Shigeru HANADA
Date:
Subject: Re: review: FDW API
Next
From: Fujii Masao
Date:
Subject: Re: pg_basebackup for streaming base backups