pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Compute hash of a table?
2+ messages / 2 participants
[nested] [flat]

* Compute hash of a table?
@ 2006-05-02 18:54 Peter Manchev <pmanchev@hotmail.com>
  2006-05-03 08:07 ` Re: Compute hash of a table? Markus Schaber <schabi@logix-tt.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Peter Manchev @ 2006-05-02 18:54 UTC (permalink / raw)
  To: pgsql-sql

Hi All

I need to determine whether the content of a given table has changed from 
the previous time I've checked it. so, my initial idea is to calculate a 
hash value of the content of the whole table, may be with custom aggregate 
function or something.

My question is:

Is it possible to get the last time(stamp) when the content of a given table 
in pgsql has changed???

Thanks!
Pete





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Compute hash of a table?
  2006-05-02 18:54 Compute hash of a table? Peter Manchev <pmanchev@hotmail.com>
@ 2006-05-03 08:07 ` Markus Schaber <schabi@logix-tt.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Markus Schaber @ 2006-05-03 08:07 UTC (permalink / raw)
  To: Peter Manchev <pmanchev@hotmail.com>; +Cc: pgsql-sql

Hi, Peter,

Peter Manchev wrote:

> Is it possible to get the last time(stamp) when the content of a given
> table in pgsql has changed???

My solution would be to add a trigger to the table which updates a
timestamp in a second table on every insert/update/delete.


HTH,
Markus



-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-05-03 08:07 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02 18:54 Compute hash of a table? Peter Manchev <pmanchev@hotmail.com>
2006-05-03 08:07 ` Markus Schaber <schabi@logix-tt.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox