1. A method of executing a query against a first database object that is partitioned using a partition definition based upon information located in a second database object, comprising: accessing metadata containing the partition definition; matching the partition definition against a predicate in the query to determine a set of one or more partitions not relevant to the query; and pruning the set of one or more partitions not relevant to the query.