David,
> It works fine. That's not the problem. This happens only periodically.
> For some reason, my connection to the server appears to be getting
> hosed.
Hmmm ... is this 7.4? Do you perhaps have statement_timeout set? Could
some external process (such as running out of RAM) be causing your
connections to be terminated by the OS? How are you connecting?
--
-Josh Berkus
Aglio Database Solutions
San Francisco