Please ignore sample 1 - now that I have the logging feature, I can see that my query generator algorithm made an error.
The SQL of concern is now script 2. ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org