My bad as always. Having the refresh after the filling of the tables does the trick. Thanks for your help.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных