Tom, Roman,
> I think more likely the issue is that your use of JOIN syntax is
> forcing
> Postgres into a bad plan. MSSQL probably doesn't assign any semantic
> significance to the use of "a JOIN b" syntax as opposed to "FROM a,
> b"
> syntax.
That's correct. MSSQL will reorder equijoins, even when explicitly
declared.
Hey, Roman, how many records in BatchDetail, anyway?
Josh Berkus