博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
gp_distribution_policy
阅读量:4032 次
发布时间:2019-05-24

本文共 509 字,大约阅读时间需要 1 分钟。

gp_distribution_policy 记录了greenplum中一个表的分布策略,其实就是哪一个字段是分布键。

 

Table "pg_catalog.gp_distribution_policy"

  Column  |    Type    | Modifiers
----------+------------+-----------
 localoid | oid        | not null
 attrnums | smallint[] |

 

这个表有两个字典,localoid 表示这个表的oid,attrnums表示这个表的那个字段序号列表,这个序号跟pg_attribute中的attnum一致,这个字段是一个列表,可以用逗号隔开做联合分布键。

 

当随机分布时distributed randomly的时候,列表为空。

 

aligputf8=# select * from gp_distribution_policy;

 localoid | attrnums
----------+----------
    16505 | {1}
    24610 | {1}
    24630 | {1}
    24683 |
    24750 | {1}
    24770 |

 

 

转载地址:http://seebi.baihongyu.com/

你可能感兴趣的文章
mysql:sql alter table 修改列属性的字符集
查看>>
mysql:sql drop table (删除表)
查看>>
mysql:sql truncate (清除表数据)
查看>>
scrapy:xpath string(.)非常注意问题
查看>>
yuv to rgb 转换失败呀。天呀。谁来帮帮我呀。
查看>>
yuv420 format
查看>>
YUV420只绘制Y通道
查看>>
yuv420 还原为RGB图像
查看>>
LED恒流驱动芯片
查看>>
驱动TFT要SDRAM做为显示缓存
查看>>
使用file查看可执行文件的平台性,x86 or arm ?
查看>>
qt5 everywhere 编译summary
查看>>
qt5 everywhere编译完成后,找不到qmake
查看>>
arm-linux开机读取硬件时钟,设置系统时钟。
查看>>
交叉编译在x86上调试好的qt程序
查看>>
/dev/input/event0 键盘输入
查看>>
qt 创建异形窗体
查看>>
可重入函数与不可重入函数
查看>>
简单Linux C线程池
查看>>
内存池
查看>>