21.05.2014 Views

Postgres-XC tutorial PDF - PGCon

Postgres-XC tutorial PDF - PGCon

Postgres-XC tutorial PDF - PGCon

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Replicated tables – mult­irow operation<br />

Pushing aggregates to the datanodes for better performance<br />

EXPLAIN VERBOSE SELECT sum(val) FROM tab1 GROUP BY val2;<br />

QUERY PLAN<br />

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­<br />

Data Node Scan on "__REMOTE_FQS_QUERY__"<br />

Output: sum(tab1.val), tab1.val2<br />

Node/s: datanode_1<br />

Remote query: SELECT sum(val) AS sum FROM tab1 GROUP BY val2<br />

­­ Get grouped and aggregated results from datanodes<br />

●<br />

Similarly push DISTINCT, ORDER BY etc.<br />

May 16th, 2012 <strong>Postgres</strong>­<strong>XC</strong> 49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!