Re: Extremely slow to establish connection when user has a high number of roles

Поиск
Список
Период
Сортировка
От Vijaykumar Jain
Тема Re: Extremely slow to establish connection when user has a high number of roles
Дата
Msg-id CAM+6J95=ChKuRE-o7ogWoJ_4onrfpLVf5LLzYYcK3XGqBgWQ7g@mail.gmail.com
обсуждение исходный текст
Ответ на Extremely slow to establish connection when user has a high number of roles  (Michal Charemza <michal@charemza.name>)
Ответы Re: Extremely slow to establish connection when user has a high number of roles  (Michal Charemza <michal@charemza.name>)
Список pgsql-performance


On Sat, Apr 20, 2024, 5:25 PM Michal Charemza <michal@charemza.name> wrote:
Hi,

We're running PostgreSQL as essentially a data warehouse, and we have a few thousand roles, which are used to grant permissions on a table-by-table basis to a few thousand users, so a user would typically have say between 1 and 2 thousand roles. There is also quite a lot of "churn" in terms of tables being created/removed, and permissions changed.

The issue is that we're hitting a strange performance problem on connection. Sometimes it can take ~25 to 40 seconds just to connect, although it's often way quicker

can you rule out system catalog bloat ? 

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Extremely slow to establish connection when user has a high number of roles
Следующее
От: Michal Charemza
Дата:
Сообщение: Re: Extremely slow to establish connection when user has a high number of roles