From: | Michal Charemza <michal(at)charemza(dot)name> |
---|---|
To: | Vijaykumar Jain <vijaykumarjain(dot)github(at)gmail(dot)com> |
Cc: | Pgsql Performance <pgsql-performance(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Extremely slow to establish connection when user has a high number of roles |
Date: | 2024-04-20 15:22:56 |
Message-ID: | CAJe2WWg1oqK=Ph-GL7wF5TXgYP7T=UGFb0fFLaQjEEOhPygamw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Vijaykumar Jain <vijaykumarjain(dot)github(at)gmail(dot)com> writes:
> can you rule out system catalog bloat ?
I don't know! I've now run the query from
https://wiki.postgresql.org/wiki/Show_database_bloat just just on
pg_catalog, results attached
On Sat, Apr 20, 2024 at 3:52 PM Vijaykumar Jain <
vijaykumarjain(dot)github(at)gmail(dot)com> wrote:
>
>
> On Sat, Apr 20, 2024, 5:25 PM Michal Charemza <michal(at)charemza(dot)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 ?
>
>
Attachment | Content-Type | Size |
---|---|---|
bloat.txt | text/plain | 12.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Frits Hoogland | 2024-04-20 15:24:02 | Re: Extremely slow to establish connection when user has a high number of roles |
Previous Message | Michal Charemza | 2024-04-20 15:12:56 | Re: Extremely slow to establish connection when user has a high number of roles |