Re: md5 hash on table row - Mailing list pgsql-general

From Michael Fuhr
Subject Re: md5 hash on table row
Date
Msg-id 20051102172614.GA12407@winnie.fuhr.org
Whole thread Raw
In response to Re: md5 hash on table row  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: md5 hash on table row
Next
From: Michael Fuhr
Date:
Subject: Re: md5 hash on table row