Craig Ringer <craig@xxxxxxxxxxxxxxx> writes: > It'd be really interesting to enhance the query planner to be smarter > about this particular case, At least for this particular example, it's not at all clear to me that it'd be worth the cost. Getting rid of accesses to tables altogether is worthwhile, but avoiding one very-low-cost arm of a BitmapOr is less so. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general