I'm executing the queries from phpPgAdmin. The above are for explain analyse. I was referring to the pure queryexecution time. Does anyone have an idea why the OR-query takes so long? Any server-side tuning possibilities? I wouldn't like to change the code of ldap's back-sql...
If you're using phpPgAdmin's timings, they could be more off than the real explain analyze timings. Make sure you're using the figure given by explain analyze itself.
Chris