Re: Proposal: CREATE CONVERSION

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposal: CREATE CONVERSION
Date: 2002-07-08 11:07:50
Message-ID: 20020708130750.A4938@zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Jul 07, 2002 at 12:58:07PM +0200, Peter Eisentraut wrote:
> What would be really cool is if we could somehow reuse the conversion
> modules provided by the C library and/or the iconv library. For example,
^^^^^^^

Very good point. Why use own conversion routines/tables if there is common
library for this?

The encoding API for PostgreSQL is really cool idea.

I unsure with only one argument for encoding function. What if I want
to use one generic function for all encodings (for example as API to
iconv)? I think better C interface is:

encode( TEXT data, NAME from, NAME to );

where from/to are encoding names. The other way is use some struct
that handle this information -- like ARGS in trigger functions.

Karel

--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/

C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB SD 2002-07-08 12:15:02 Re: Issues Outstanding for Point In Time Recovery (PITR)
Previous Message Tatsuo Ishii 2002-07-08 08:34:28 Re: Proposal: CREATE CONVERSION