Re: How convert UNICODE - Mailing list pgsql-sql

From lms
Subject Re: How convert UNICODE
Date
Msg-id 20061119003111.M86685@inetcafe.eu.org
Whole thread Raw
In response to How convert UNICODE  ("lms" <piechcio@inetcafe.eu.org>)
List pgsql-sql
HiI must copy rows from local database (UNICODE) to remote database SQL_ASCII
(not on local machine) with converting selected columns to iso8859_2 or 
iso_8859_5. Can I make it with COPY?


On Sat, 18 Nov 2006 09:42:14 -0500, Travis Whitton wrote 
> You can use the postgresql COPY command to dump a single column to a file. 
Do this for each column you need to convert. From there, use iconv to 
convert the data. When you're done dumping and converting, use the unix 
paste command to reassemble the data. If you're not on a unix-based 
platform, a simple perl script should do the job. 




pgsql-sql by date:

Previous
From: imad
Date:
Subject: Re: transactional shared variable in postgresql
Next
From: Chris Tennant
Date:
Subject: planner used functional index in 7.3.6, now does a seq scan in 7.4.7 after upgrade