partition 和 distribution的区别:
distribution – 物理上拆分表数据、能并行执行查询
partition – 逻辑上拆分大表数据提高查询性能、利于数据仓库维护工作
分区表建表语法:
网上摘录的例子:
参考> http://blog.itpub.net/10037372/viewspace-707422/
create table tt(
a timestamp without time zone,
b numeric,
c numeric,
d numeric
) WITH (appendonly=true,orientation=<