我不熟悉使用psql
提示符。我运行了sudo -u postgres
(psql
版本9.3.9)
然后我连接到我的数据库并运行
=> ALTER DEFAULT PRIVILEGES FOR USER some_user IN SCHEMA public GRANT SELECT ON TABLES TO other_user;
然后我收到此错误消息
ERROR: syntax error at or near "ALTER DEFAULT PRIVILEGES FOR USER"
LINE 1: ALTER DEFAULT PRIVILEGES FOR USER ckan_default IN SCHEMA pub..
我该如何处理?