pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
query priority 2+ messages / 2 participants [nested] [flat]
* query priority @ 2002-01-08 20:20 Peter T. Brown <peter@memeticsystems.com> 2002-01-08 23:05 ` Re: query priority Peter Eisentraut <peter_e@gmx.net> 0 siblings, 1 reply; 2+ messages in thread From: Peter T. Brown @ 2002-01-08 20:20 UTC (permalink / raw) To: pgsql-admin Is there a way to reduce the priority of any psql queries depending on the user connecting to the database? I basically want to be able to run lower priority queries for some types of queries (for exporting and analysis) while other queries run at higher priorities (for mission critical website serving etc.). I have seem some C functions that will nice a SELECT at the time its run, but I am using JDBC from a servlet engine cluster.... Any ideas? THANK YOU ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: query priority 2002-01-08 20:20 query priority Peter T. Brown <peter@memeticsystems.com> @ 2002-01-08 23:05 ` Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2002-01-08 23:05 UTC (permalink / raw) To: Peter T. Brown <peter@memeticsystems.com>; +Cc: pgsql-admin Peter T. Brown writes: > Is there a way to reduce the priority of any psql queries depending on the > user connecting to the database? Officially: No. Most ideas to this end have been a failure, because the low-priority query might hold locks that the high-priority query needs, so merely "nice"-ing the processes doesn't work, you also need some considerable lock manager wizardry. (If, on the other hand, your two queries don't contend for locks, because they don't access the same data, you can try the "nice" approach.) > I have seem some C functions that will nice a SELECT at the time its run, > but I am using JDBC from a servlet engine cluster.... Those functions would have to run on the server, so it shouldn't matter which interface your start them under. -- Peter Eisentraut peter_e@gmx.net ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-01-08 23:05 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2002-01-08 20:20 query priority Peter T. Brown <peter@memeticsystems.com> 2002-01-08 23:05 ` Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox