The problem is solved, there was a syntax error in the code I failed to spot time after time... tnx anyway, Koen Antonissen
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных