Re: md5 hash on table row

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: md5 hash on table row
Дата
Msg-id 20051102172614.GA12407@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: md5 hash on table row  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, Nov 02, 2005 at 12:18:15PM -0500, Tom Lane wrote:
> Michael Fuhr <mike@fuhr.org> writes:
> > I just noticed that record_out(foo) works only in 8.1.  When I have
> > more time I'll see if it's possible in earlier versions.
>
> Probably not :-(

This works in 8.0.4, although it gives even more decoration:

test=> SELECT id, textin(record_out(row(foo), tableoid)) FROM foo;
 id |                                textin
----+-----------------------------------------------------------------------
  1 | ("(1,123,""this is a test"",2005-11-02,t,""\\\\000\\\\001\\\\002"")")
(1 row)

test=> SELECT id, md5(textin(record_out(row(foo), tableoid))) FROM foo;
 id |               md5
----+----------------------------------
  1 | 3e66ee01b83eeb1a2444df326b75ffe0
(1 row)

--
Michael Fuhr

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: md5 hash on table row
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: md5 hash on table row