Simon,
> So we can optimize away the scan through the procarray by doing two "if"
> tests, one outside of the lock, one inside. In normal running, both will
> be optimized away, though in read-only periods we would avoid much work.
How much work would it be to work up a test patch?
--
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com