Я считал что время по гринвичу на всех устройствах включая и сервера всегда одинаково, не так?
на какой единый источник?
lvm отсутствует
select ...
from tablename t
where t.flag = 1
and not exists(select null from tablename sq where sq.link_id = t.link_id and sq.flag != 1)
В документации postgresql указано, что gin индекс быстрее чем gist
A variant of the above query is
SELECT t, t <-> 'word' AS dist
FROM test_trgm
ORDER BY dist LIMIT 10;
This can be implemented quite efficiently by GiST indexes, but not by GIN indexes. It will usually beat the first formulation when only a small number of the closest matches is wanted.
Если бы вам это было нужно - вы бы задавали совсем другие вопросы.
Что нужно сделать - включить и настроить ntp в ОС.