"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?
regards, tom lane