Re: High load on commit after important schema changes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: High load on commit after important schema changes
Дата
Msg-id 10229.1251476886@sss.pgh.pa.us
обсуждение исходный текст
Ответ на High load on commit after important schema changes  (hubert depesz lubaczewski <depesz@depesz.com>)
Ответы Re: High load on commit after important schema changes
Список pgsql-general
hubert depesz lubaczewski <depesz@depesz.com> writes:
> One of operations that happens on the database is:
> begin;
> call function();
> commit;
> where  function is plpgsql function which does:
> - drop several (n) views/tables
> - rename ~2n views and tables (and related objects like indexes and
>   constraints) - including ones that are very often used

> eveyrting is fine up until commit;

> when commit is called load jumps from ~2 to ~40, despite the fact that
> there are not much activity on the system (it happens in the morning).

Hm, do you have forty or so idle backends hanging around while this
happens?  The only thing I can think of that might be causing this is
shared cache invalidation messages being broadcast to all the other
sessions.

8.4 has some improvements in SI messaging that might or might not
solve it for you.  In 8.2 I think the only thing you could do is
not have so many open sessions while you change the schema.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Update /src/tools/msvc to VC++ 2008
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Update /src/tools/msvc to VC++ 2008