Controlling CPU Usage in PostgreSQL

Поиск
Список
Период
Сортировка
От Aaron Bono
Тема Controlling CPU Usage in PostgreSQL
Дата
Msg-id bf05e51c0607310106w415fe34ep4b5046984cd11341@mail.gmail.com
обсуждение исходный текст
Ответы Re: Controlling CPU Usage in PostgreSQL
Список pgsql-admin
I have a nightly process that runs in production to refresh reports.  This process runs fine but takes a significant portion of the CPU for an hour or so.  I was wanting to limit this particular process so it does not consume the full CPU while running (unless nothing else needs the CPU cycles anyway).

Is there a way I can tell PostgreSQL to give session a low priority so even if it does take the full CPU, it only does so if it would otherwise be idle?  This process runs a series of functions so if there is a command I can put at the beginning of each function, that would be ideal.  I would rather do it after logging into PostgreSQL and not by limiting the process at the OS level though that may be an option if there is nothing better.

Of course, if there are other ways to approach this, I am quite open to alternatives.

Thanks,
Aaron

==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
==================================================================

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

Предыдущее
От: "Dilipkumar"
Дата:
Сообщение: Re: Scheduled backup in postgresql
Следующее
От: Thomas Pundt
Дата:
Сообщение: Re: Controlling CPU Usage in PostgreSQL