upcoming 7.4 relaese: absent recode() function ?

Started by Ruslan A Dautkhanovover 22 years ago3 messagesbugs
Jump to latest
#1Ruslan A Dautkhanov
rusland@scn.ru

From the latest pgsql-announce@postgresql.org

message

The --enable-recode feature was removed due to its brokenness with
the IPv6 changes and an apparent lack of anyone actually using it.

Is this mean, that PostgresSQL will not have recode() futher ?
Some my programs use following form of the recode:
recode('...', 'Windows-1251', 'KOI8-R')
to convert posted users' files into my base charset KOI8-R, if the files' content have another charset
and save them into DB...

How can I install recode() function for 7.4 release ?

--
best regards,
Ruslan A Dautkhanov rusland@scn.ru

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Ruslan A Dautkhanov (#1)
Re: upcoming 7.4 relaese: absent recode() function ?

Ruslan A Dautkhanov <rusland@scn.ru> writes:

Is this mean, that PostgresSQL will not have recode() futher ?

That's right. Use the more general character-set-conversion
functionality, instead.

regards, tom lane

#3Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#2)
Re: upcoming 7.4 relaese: absent recode() function ?

Also, Tom, we had this item on TODO for a while, so people were using it
in the past, they would have squaked about the idea of removing it:

* -Remove Cyrillic recode support

---------------------------------------------------------------------------

Tom Lane wrote:

Ruslan A Dautkhanov <rusland@scn.ru> writes:

Is this mean, that PostgresSQL will not have recode() futher ?

That's right. Use the more general character-set-conversion
functionality, instead.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073