ERROR: permission denied for schema s1 LINE 1: select * from s1.new;
This error seems mostly self-explanatory - the user "user2" doesn't have permission to use schema "s1". See the documentation for how to grant this permission - its similar to how you granted select on the table.
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.