Re: md5(bytea)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: md5(bytea)
Дата
Msg-id 29075.1116480511@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: md5(bytea)  (Abhijit Menon-Sen <ams@oryx.com>)
Ответы Re: md5(bytea)
Список pgsql-patches
Abhijit Menon-Sen <ams@oryx.com> writes:
> At 2005-05-18 23:31:27 -0400, tgl@sss.pgh.pa.us wrote:
>> Doesn't that change cause the opr_sanity regression test to complain?

> As far as I can tell, updating the test as below is the correct thing
> to do.

No, I don't much care for that, because it gives free license for anyone
to define pg_proc entries that allow bytea values to be fed to functions
that are expecting text inputs.  Many of the latter are not going to
cope very well with strings that contain embedded zero bytes, nor byte
sequences that aren't legal multibyte characters in the current encoding.

I think you need to make a separate C-level function for this.  The
underlying md5 code might be the same, but text and bytea are not really
binary-equivalent.

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: md5(bytea)
Следующее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: md5(bytea)