From: | "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | "Kirill Simonov" <xi(at)gamma(dot)dn(dot)ua> |
Cc: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #4596: information_schema.table_privileges is way too slow |
Date: | 2008-12-25 10:53:36 |
Message-ID: | 162867790812250253k26689f7ei4f2ca6013fac65e0@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
2008/12/25 Kirill Simonov <xi(at)gamma(dot)dn(dot)ua>:
> Tom Lane wrote:
>>
>> "Kirill Simonov" <xi(at)gamma(dot)dn(dot)ua> writes:
>>>
>>> It takes about 5 minutes to perform the query
>>> SELECT * FROM information_schema.table_privileges
>>> on an empty database (i.e. with system tables only).
>>
>> Not here. What non-default settings might you be using?
>>
>
> Indeed, it is slow because there are a lot of rows in pg_authid (about 700).
> Is there a possibility to make table_privileges faster with a large number
> of roles?
>
> Thanks,
> Kirill
two years ago I tested 50000 users without problems. Try to vacuum and
reindex your system tables
regards
Pavel Stehule
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
>
From | Date | Subject | |
---|---|---|---|
Next Message | Kirill Simonov | 2008-12-25 13:36:48 | Re: BUG #4596: information_schema.table_privileges is way too slow |
Previous Message | Kirill Simonov | 2008-12-25 08:23:44 | Re: BUG #4596: information_schema.table_privileges is way too slow |