[offline ATM, can't look at the main issue, just wanted to get a comment in about fopen(). Unless beaten to it, I'll try to look at the other part later.]
> on a sidenote: are those fopen() errors debug-code-leftovers > or something one should worry about? i can't find those files > on the file system. No. It's debugging output for a problem we had earlier, and will be removed before release. //Magnus ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match