citus/src
eren ef6d5c7571 Fix spurious NOTICE messages with ANY/ALL
Fixes issue #258

Prior to this change, Citus gives a deceptive NOTICE message when a query
including ANY or ALL on a non-partition column is issued on a hash
partitioned table.

Let the github_events table be hash-distributed on repo_id column. Then,
issuing this query:
    SELECT count(*) FROM github_events WHERE event_id = ANY ('{1,2,3}')

Gives this message:
    NOTICE: cannot use shard pruning with ANY (array expression)
    HINT: Consider rewriting the expression with OR clauses.

Note that since event_id is not the partition column, shard pruning would
not be applied in any case. However, the NOTICE message would be valid
and be given if the ANY clause would have been applied on repo_id column.

Reviewer: Murat Tuncer
2016-03-25 14:30:02 +02:00
..
backend Fix spurious NOTICE messages with ANY/ALL 2016-03-25 14:30:02 +02:00
bin Update copyright dates 2016-03-23 17:14:37 -06:00
include Update copyright dates 2016-03-23 17:14:37 -06:00
test/regress Fix spurious NOTICE messages with ANY/ALL 2016-03-25 14:30:02 +02:00