Stefan Schwarzer <stefan.schwarzer@xxxxxxxxxxxx> writes: > I had a couple of problems getting there. But now that I have the > feeling that this is OK, it tells me this: > server closed the connection unexpectedly Could you provide a self-contained test case for this? There's not really enough information here for someone else to duplicate the problem. Also, which PG version are you using? regards, tom lane ---------------------------(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