David Rericha <d.rericha@xxxxxxxxxxxxxxxxx> writes: > Thanks, Tom. That was it. After I ran analyze on the table, the error > disappeared. Yeah, I just duplicated the failure here. It only happens if the comparison value falls into the histogram bucket adjoining the out-of-range value, which is why you didn't see it happen for some values of the comparison constant. Doesn't look too hard to fix. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin