What does your patch do that you can't already do with pg_restore?
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных