| От | John Sidney-Woollett |
|---|---|
| Тема | Re: cyclical redundancy checksum algorithm(s)? |
| Дата | |
| Msg-id | 451B8B21.60602@wardbrook.com обсуждение исходный текст |
| Ответ на | Re: cyclical redundancy checksum algorithm(s)? (Joachim Wieland <joe@mcknight.de>) |
| Список | pgsql-general |
Ah, good point! Missed the subtlety of what was being asked. John Joachim Wieland wrote: > On Thu, Sep 28, 2006 at 07:09:43AM +0100, John Sidney-Woollett wrote: >> Why not use an update trigger on the affected tables to record a >> lastupdated timestamp value when the record is changed. > >> Surely this is simpler thanks computing some kind of row hash? > > It depends on how you define "change". With the triggers you propose an > > UPDATE table SET col = col; > > is a change because there was a write operation. Any hash function's output > would be "no change" because the actual data did not change. An update might > entail an expensive update of some external data so you might want to make > sure that data really got modified. >
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера