Try adding a sync before the second execute.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных