mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
[GH-ISSUE #20] При подключении к 11 версии - нет доступа к pg_subscription #20
Labels
No labels
bug
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/pgadmin3#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @daemonserj on GitHub (Oct 22, 2021).
Original GitHub issue: https://github.com/levinsv/pgadmin3/issues/20
@levinsv commented on GitHub (Oct 23, 2021):
Создавать подписки разрешено только суперпользователям. (это из документации)
И если работать не как суперпользователь то возможны всякие такие сообщения об отсутствии доступа или прав.
@daemonserj commented on GitHub (Oct 25, 2021):
Это было под пользователем postgres, во время коннекта к БД postgres
@daemonserj commented on GitHub (Oct 26, 2021):
Обновился до 13, тоже самое.
postgres - суперпользователь. Через psql запрос отрабатывает.
postgres=# select * from pg_subscription; oid | subdbid | subname | subowner | subenabled | subconninfo | subslotname | subsynccommit | subpublications -----+---------+---------+----------+------------+-------------+-------------+---------------+----------------- (0 строк)Предварительно выяснил что проблема касается всех таблиц из pg_catalog в которых в ACL нет "=r/postgres"


Вот это норм:
Вот ACL от pg_subscription:
@levinsv commented on GitHub (Oct 26, 2021):
посмотрите к какой базе и каким пользователем вы соединяетесь в pgadmin3 .
не может суперюзер получать сообщения с отсутствием доступа к чему либо.
выполните в pgadmi3 запрос:
select * from pg_roles where rolname=current_user ;И посмотрите под кем вы работаете.
@daemonserj commented on GitHub (Oct 26, 2021):
Да действительно, работю не суперюзером. Тогда можно убрать при логине этот варнинг?
@levinsv commented on GitHub (Oct 26, 2021):
Отключите в настройках отображение в дереве subscription. И ошибок не будет.
@daemonserj commented on GitHub (Oct 26, 2021):
Отключил, спасибо.