pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Abu Mushayeed <abumushayeed@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: UTF8 Questions
Date: Mon, 14 Aug 2006 15:42:48 -0700 (PDT)
Message-ID: <20060814224248.72408.qmail@web57113.mail.re3.yahoo.com> (raw)

We upgraded our Db from LATIN1 to UTF8 as follows:

1. new install with encoding=UTF8
2. pg_dump from old DB and import into new db using psql as follows:
 pg_dump out of old_db|psql into new_db
3. New feeds (data files) come in same as when the DB was latin1. If error message from any load script like "Invalid UTF8 code ...",  then, "set client_encoding=latin1" in the script and run again and all is well.
4. all the other scripts run on the UTF8 Db as is and no errors, meaning the scripts has not been changed and is running as is before when DB was latin1.
5. Now, some of the DB feeds (data files) is changing to UTF8. What needs to be done when the data feeds changes to UTF8.

Any other thoughts or if there is a problem that anyone sees, please help me with a solution.

Thanks

 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1ยข/min.

view thread (2+ messages)  latest in thread

Message-ID: <20060814224248.72408.qmail@web57113.mail.re3.yahoo.com>
Permalink:  ../20060814224248.72408.qmail@web57113.mail.re3.yahoo.com/
Also on:    postgresql.org/message-id/20060814224248.72408.qmail@web57113.mail.re3.yahoo.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: abumushayeed@yahoo.com
  Subject: Re: UTF8 Questions
  In-Reply-To: <20060814224248.72408.qmail@web57113.mail.re3.yahoo.com>
  References: <20060814224248.72408.qmail@web57113.mail.re3.yahoo.com>

* 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