Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: Character s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3176 of 3323
Post > Topic >>

Re: Character set conversion

by tgl@[EMAIL PROTECTED] (Tom Lane) Jul 21, 2008 at 10:16 AM

Bastiaan Olij <lists@[EMAIL PROTECTED]
> writes:
> I read in the do***entation about the 'Create conversion' command 
> writing a function to do the conversion job. Is this the best way 
> forward or are there better ways to attempt this? Is there any sample 
> code available for implementing such a conversion? I don't want to 
> reinvent the wheel here...

Look into the PG source code under
src/backend/utils/mb/conversion_procs.

While an add-on conversion procedure isn't too hard, I don't think
there's any way to define a whole new encoding without modifying the
source code --- the encodings are listed in some hard-coded tables
in the C code rather than being defined by a system catalog.  It
wouldn't be too hard if you don't mind running a custom Postgres
build; but if you do, then the best answer might be to cannibalize
one of the existing encoding names and just replace its conversion
procedures.

			regards, tom lane

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 1 Posts in Topic:
Re: Character set conversion
tgl@[EMAIL PROTECTED] (T  2008-07-21 10:16:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 6:20:49 CST 2008.