> I once had a query which would operate on a recordlist and > see whether there were any gaps larger than 1 between consecutive > primary keys. Would you mind sharing the query you described? I am attempting to do something similar now.
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных