Attached 004_declareStmt_test_v5.patch is a rebased one. The rest of patches are same as older version.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных