>Since PostgreSQL allows user-defined aggregates, this is somewhat
>difficult to optimize. No one has yet bothered to create special
>cases for max(), min() and perhaps count(), although it could
>probably be done.
Perhaps you can suggest the fastest way of getting a table count, if it is not
SELECT COUNT(*) FROM x WHERE ...;
Thanks,
Doug