Language Code to Language name conversion for use in pg_ts_config?

From: Josh Hayes-Sheen <grevian(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Language Code to Language name conversion for use in pg_ts_config?
Date: 2008-02-11 19:13:00
Message-ID: 47B09E3C.7060901@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I've started tinkering with the FTS functionality in 8.3 and was
wondering if there was a good way to convert from a language code (like
en-us) to a language name as used in pg_ts_config.cfgname (like
'english'), As far as I know ISO639 language codes are used pretty much
everywhere else in postgres but there for some reason? I can build a
table to do the mapping if I have to, but wasn't sure if there was a
better way planned or one that was missing? (I want to build indexes
based on languages passed in from the application as language codes)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peck, Brian 2008-02-11 19:17:28 .Net Development Issues
Previous Message Alvaro Herrera 2008-02-11 18:46:44 Re: oids