> I have; the above would hold the lock window open while the SELECT runs
> and that is explicitly something we are trying to avoid.
Not necessarily. You could copy into a temp table first, and then swap.
--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com