Re: [HACKERS] On markers of changed data

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] On markers of changed data
Дата
Msg-id 5126.1507299731@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] On markers of changed data  (Andrey Borodin <x4mmm@yandex-team.ru>)
Ответы Re: [HACKERS] On markers of changed data  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
Andrey Borodin <x4mmm@yandex-team.ru> writes:
> Is it safe to use file modification time to track that file were changes
> since previous backup?

I'd say no:

1. You don't know the granularity of the filesystem's timestamps, at least
not without making unportable assumptions.

2. There's no guarantee that the system clock can't be set backwards.

3. It's not uncommon for filesystems to have optimizations whereby they
skip or delay some updates of file mtimes.  (I think this is usually
optional, but you couldn't know whether it's turned on.)

#2 is probably the worst of these problems.
        regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: [HACKERS] [COMMITTERS] pgsql: Fix freezing of a dead HOT-updatedtuple
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] On markers of changed data