Re: Hash join on int takes 8..114 seconds

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Hash join on int takes 8..114 seconds
Дата
Msg-id 4926E2B2.9050202@archonet.com
обсуждение исходный текст
Ответ на Re: Hash join on int takes 8..114 seconds  ("Andrus" <kobruleht2@hot.ee>)
Ответы Re: Hash join on int takes 8..114 seconds  ("Andrus" <kobruleht2@hot.ee>)
Re: Hash join on int takes 8..114 seconds  ("Andrus" <kobruleht2@hot.ee>)
Список pgsql-performance
Andrus wrote:
>> - what's the size of the dataset relative to the RAM ?
>
> Db size is 7417 MB
> relevant table sizes in desc by size order:
>
>      1        40595 dok                                 2345 MB


>      2         1214 pg_shdepend                         2259 MB
>      6         1232 pg_shdepend_depender_index          795 MB
>      7         1233 pg_shdepend_reference_index         438 MB

These three are highly suspicious. They track dependencies between
system object (so you can't drop function F because trigger T depends on
it).

http://www.postgresql.org/docs/8.3/static/catalog-pg-shdepend.html

You've got 3.5GB of data there, which is a *lot* of dependencies.

Try "SELECT count(*) FROM pg_shdepend".

If it's not a million rows, then the table is bloated. Try (as postgres
or some other db superuser) "vacuum full pg_shdepend" and a "reindex
pg_shdepend".

If it is a million rows, you'll need to find out why. Do you have a lot
of temporary tables that aren't being dropped or something similar?

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: tv@fuzzy.cz
Дата:
Сообщение: Re: Hash join on int takes 8..114 seconds
Следующее
От: "Andrus"
Дата:
Сообщение: Re: Hash join on int takes 8..114 seconds