Distributed PostgreSQL as an extension
 
 
 
 
 
 
Go to file
Jason Petersen d164305929
Handle hash-partitioned aliased data types
When two data types have the same binary representation, PostgreSQL may
add an implicit coercion between them by wrapping a node in a relabel
type. This wrapper signals that the wrapped value is completely binary
compatible with the designated "final type" of the relabel node. As an
example, the varchar type is often relabeled to text, since functions
provided for use with text (comparisons, hashes, etc.) are completely
compatible with varchar as well.

The hash-partitioned codepath contains functions that verify queries
actually contain an equality constraint on the partition column, but
those functions expect such constraints to be comparison operations
between a Var and Const. The RelabelType wrapper node causes these
functions to always return false, which bypasses shard pruning.
2016-02-11 13:50:43 -07:00
src Handle hash-partitioned aliased data types 2016-02-11 13:50:43 -07:00
.gitattributes Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
.gitignore Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
.travis.yml Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
Makefile Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
Makefile.global.in Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
autogen.sh Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
configure Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
configure.in Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
prep_buildtree Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00