> or use a lateral subquery to surgically (fetch first 1) retrieve the first row when sorted by recency descending. I'm not sure that I see how to apply this when I need top-k, not top-1.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных