使用citus 列式存储压缩数据

实际上是一个实际问题,刚好结合问题说明下问题的一种解决方法

问题

注意是基于容器运行的

  • 异常
ERROR:  could not resize shared memory segment "/PostgreSQL.1345396376" to 4194304 bytes: No space left on device
CONTEXT:  while executing command on localhost:5432

解决方法

列式存储,或者增大shared 内容
基于已经创建的分布式表,可以调整访问模式,基于此我们可以解决此问题,而且压缩比是很不错的,归于归档数据值得使用
参考

 
SELECT alter_table_set_access_method('github_usersv3', 'columnar');
  • shared 调整
    shm-size 参数

参考资料

https://stackoverflow.com/questions/56751565/pq-could-not-resize-shared-memory-segment-no-space-left-on-device
https://github.com/moby/moby/issues/29492
https://www.citusdata.com/blog/2021/03/06/citus-10-columnar-compression-for-postgres/

posted on   荣锋亮  阅读(335)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2021-05-10 cubestore 配置
2019-05-10 dinoql 使用nodejs 运行的几个问题
2019-05-10 dinoql 试用
2019-05-10 dinoql 使用graphql 语法查询javascript objects
2016-05-10 FASTDFS .net 客户端
2014-05-10 基于server broker 的数据实时更新
2014-05-10 Oracle中的三种Join 方式

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示