Please ignore sample 1 - now that I have the logging feature, I can see that my query generator algorithm made an error. The SQL of concern is now script 2.
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных