Question :
Are there any posibilities to prevent users invoke du command in Postgres ?
Answer :
What are Users doing in your database, running psql directly at all?
Unless your security model is exceedingly good, this is hugely dangerous.
Users should not be allowed anywhere near the “raw” database, and especially not anywhere near the Production one!