"Joshua D. Drake" <[EMAIL PROTECTED]> writes: > If you look at the second line in each explain it is the sort that is > causing the grief.
The aggregation is a great deal worse as well. I suspect that for some reason the comparison operations involved in the sorting and grouping are much slower on the FC3 machine. What are the data types of the leading sort keys ... and are you *certain* the FC3 database has LC_COLLATE and LC_CTYPE set to C? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match