Re: Performance features the 4th
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jan Wieck <JanWieck@Yahoo.com>
Cc: Manfred Spraul <manfred@colorfullife.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2003-11-05T21:10:09Z
Lists: pgsql-hackers
Jan Wieck <JanWieck@Yahoo.com> writes: > Manfred Spraul wrote: >> What about skipping the delay if there are no outstanding disk >> operations? > How portable is getrusage()? Could the postmaster issue that frequently > for RUSAGE_CHILDREN and leave the result somewhere in the shared memory > for whoever is concerned? How would that tell you about currently outstanding operations? Manfred's idea is interesting but AFAICS completely unimplementable in any portable fashion. You'd have to have hooks into the kernel. regards, tom lane