pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: lms <piechcio@inetcafe.eu.org>
To: pgsql-sql@postgresql.org
Subject: Re: How convert UNICODE
Date: Sun, 19 Nov 2006 01:33:57 +0100
Message-ID: <20061119003111.M86685@inetcafe.eu.org> (raw)
In-Reply-To: <cf9b4f3e0611180642s316340ddrd597809048786b63@mail.gmail.com>
References: <20061117165852.M2045@isb.com.pl>
	<cf9b4f3e0611171111n22e4b1c1k8f1bf0de151fd31a@mail.gmail.com>
	<20061117230302.M62231@inetcafe.eu.org>
	<cf9b4f3e0611180642s316340ddrd597809048786b63@mail.gmail.com>

Hi
 I 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. 





view thread (6+ messages)  latest in thread

Message-ID: <20061119003111.M86685@inetcafe.eu.org>
Permalink:  ../20061119003111.M86685@inetcafe.eu.org/
Also on:    postgresql.org/message-id/20061119003111.M86685@inetcafe.eu.org

 · 

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-sql@postgresql.org
  Cc: piechcio@inetcafe.eu.org
  Subject: Re: How convert UNICODE
  In-Reply-To: <20061119003111.M86685@inetcafe.eu.org>

* 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