Search Postgresql Archives

Re: md5 hash on table row

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 02, 2005 at 12:18:15PM -0500, Tom Lane wrote:
> Michael Fuhr <mike@xxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux