Re: cast bytea to/from bit strings

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: cast bytea to/from bit strings
Date: 2006-05-06 12:36:58
Message-ID: 200605061236.k46CawU29622@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Fabien COELHO wrote:
>
> Dear Bruce,
>
> > I am not sure this is of general enough usefulness to be in the backend.
>
> Hmm...
>
> I think that the inability to convert nearly binary compatible standard
> types one to the other is a postgresql issue. Even if it is not often
> useful, the point is completeness and soundness of the type provided by
> the core. More over I haven't found any work around with decode/encode and
> other casts functions. Bytea is somehow an isolated type, which makes it
> not so useful from within the database.
>
> > Can you add it as a pgfoundry project?
>
> I could do it, but ISTM it is really overkill for two stupid 10 lines
> functions that deal with internal core types.

OK, can I get some feedback from others about this patch?

--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-05-06 14:57:13 Re: pgsql: Add SSL CRL support to libpq.
Previous Message Hannu Krosing 2006-05-06 10:56:27 Re: plpython improvements