Thom Brown wrote: > It's a shame I can't optimise it though as the real case that runs > is with a limit of 4000 which takes a long time to complete. Perhaps you should post the real case. -Kevin
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных