Hi, Aleksander, thank you very much. Tables are already placed into special schema, but there are some dynamically created tables and the goal is to protect all these tables from direct insert, update and delete operations from users. I've read about the SECURITY DEFINER, it will do the trick.
-- Regards, Nikita Malakhov Postgres Professional The Russian Postgres Company https://postgrespro.ru/