A example use for python-psql-replication
The project https://github.com/toluaina/pgsync sync data using postgres Notifications. see (https://tapoueh.org/blog/2018/07/postgresql-listen-notify/) and use logic replicatioin slot for something missing pull.
While pg_to_es only use logic replication slot.
So pgsync was recommend.
You can define you models.py for your own data