Thanks You were right, it was because of the return void But I think in the documentation, I read somewhere that this kind of return was allowed ... I must have mistaken ...
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных