Controlling CPU Usage in PostgreSQL - Mailing list pgsql-admin

From Aaron Bono
Subject Controlling CPU Usage in PostgreSQL
Date
Msg-id bf05e51c0607310106w415fe34ep4b5046984cd11341@mail.gmail.com
Whole thread Raw
Responses Re: Controlling CPU Usage in PostgreSQL
List 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 by date:

Previous
From: "Dilipkumar"
Date:
Subject: Re: Scheduled backup in postgresql
Next
From: Thomas Pundt
Date:
Subject: Re: Controlling CPU Usage in PostgreSQL