HybridDB for PostgreSQL上手指南

简介: HybridDB for PG 实例使用方法

架构介绍

https://yq.aliyun.com/articles/73038?spm=5176.100239.blogcont225664.61.usDaOd

开通实例

https://help.aliyun.com/document_detail/50200.html?spm=5176.product35364.4.2.j854nc

实例管理

DMS: 进入实例控制台,点击“登陆数据库”

HDB,RDS PG管理客户端pgadmin:https://www.pgadmin.org/download/

HDB PG建议下载1.6.3的pgadmin版本:https://www.postgresql.org/ftp/pgadmin/pgadmin3/

产品文档

HDB PG 产品文档:https://help.aliyun.com/document_detail/49912.html

建表相关

建表语法:https://gpdb.docs.pivotal.io/500/ref_guide/sql_commands/CREATE_TABLE.html

列存压缩(压缩比3到10倍):https://help.aliyun.com/knowledge_detail/50320.html?spm=5176.7750321.6.584.HW7nCT

表分区(支持数字和日期类型上的多级分区):

数据导入与同步

HDB PG OSS 外部表文档:https://help.aliyun.com/document_detail/35457.html

ODPS 导出到OSS:https://www.atatech.org/articles/71002

HDB PG 批量更新(Upsert)方法:https://yq.aliyun.com/articles/86604

社区文档

RDS PG 社区官方手册:https://www.postgresql.org/docs/10/static/index.html
HDB PG 社区官方手册:http://greenplum.org/docs/
HDB PG 8.2 社区官方文档:https://www.postgresql.org/docs/8.2/static/
MADlib SQL机器学习库:http://madlib.apache.org/documentation.html
PostGIS文档:http://postgis.net/docs/manual-2.3/
PostGIS入门:http://workshops.boundlessgeo.com/postgis-intro/

开发指南

客户端、JDBC驱动下载:https://help.aliyun.com/document_detail/35428.html?spm=5176.7750321.6.552.8z0pL3

PG 客户端驱动:https://www.postgresql.org/docs/10/static/external-interfaces.html

Java:https://github.com/digoal/blog/blob/master/201701/20170106_05.md
PHP:https://github.com/digoal/blog/blob/master/201701/20170106_08.md
Ruby:https://github.com/digoal/blog/blob/master/201701/20170106_07.md
Python:https://github.com/digoal/blog/blob/master/201701/20170106_06.md
C:https://github.com/digoal/blog/blob/master/201701/20170106_09.md

开发规约

https://github.com/digoal/blog/blob/master/201609/20160926_01.md

最佳实践

HDB PG 数据倾斜的监测和实践:https://github.com/digoal/blog/blob/master/201708/20170821_02.md

HDB PG 负载管理(资源队列管理):https://github.com/digoal/blog/blob/master/201708/20170821_01.md

mysql->HDB PG全量、增量同步:https://github.com/aliyun/rds_dbsync

mysql->HDB PG全量、增量同步:https://help.aliyun.com/product/26590.html

分页和评估(游标 或 PK+上一次最大位点开始):https://github.com/digoal/blog/blob/master/201605/20160506_01.md

HyperLogLog的使用:https://github.com/digoal/blog/blob/master/201608/20160825_02.md

UPSERT的用法:https://github.com/digoal/blog/blob/master/201704/20170424_04.md

PostGIS例子:http://revenant.ca/www/postgis/workshop/indexing.html

锁等待查询:https://github.com/digoal/blog/blob/master/201705/20170521_01.md

典型方案

RDS PG,HDB PG案例大全(开发者的《如来神掌》):https://github.com/digoal/blog/blob/master/201706/20170601_02.md

相关实践学习
使用PolarDB和ECS搭建门户网站
本场景主要介绍如何基于PolarDB和ECS实现搭建门户网站。
阿里云数据库产品家族及特性
阿里云智能数据库产品团队一直致力于不断健全产品体系,提升产品性能,打磨产品功能,从而帮助客户实现更加极致的弹性能力、具备更强的扩展能力、并利用云设施进一步降低企业成本。以云原生+分布式为核心技术抓手,打造以自研的在线事务型(OLTP)数据库Polar DB和在线分析型(OLAP)数据库Analytic DB为代表的新一代企业级云原生数据库产品体系, 结合NoSQL数据库、数据库生态工具、云原生智能化数据库管控平台,为阿里巴巴经济体以及各个行业的企业客户和开发者提供从公共云到混合云再到私有云的完整解决方案,提供基于云基础设施进行数据从处理、到存储、再到计算与分析的一体化解决方案。本节课带你了解阿里云数据库产品家族及特性。
目录
相关文章
|
分布式计算 关系型数据库 MaxCompute
Best Practices for Data Migration from MaxCompute to HybridDB for PostgreSQL
Users often struggle to migrate data from MaxCompute to HybridDB. This blog describes five steps that will help you migrate data conveniently.
3237 0
Best Practices for Data Migration from MaxCompute to HybridDB for PostgreSQL
|
关系型数据库 PostgreSQL 索引
|
关系型数据库 测试技术 PostgreSQL
|
JSON 安全 关系型数据库
Massive Parallel Processing with Alibaba Cloud HybridDB for PostgreSQL
When you have massive amounts of data and the need for data analytics, or you have high availability requirements, or security and backup protocols to.
2303 0
|
存储 关系型数据库 测试技术
拯救海量数据:PostgreSQL分区表性能优化实战手册(附压测对比)
本文深入解析PostgreSQL分区表的核心原理与优化策略,涵盖性能痛点、实战案例及压测对比。首先阐述分区表作为继承表+路由规则的逻辑封装,分析分区裁剪失效、全局索引膨胀和VACUUM堆积三大性能杀手,并通过电商订单表崩溃事件说明旧分区维护的重要性。接着提出四维设计法优化分区策略,包括时间范围分区黄金法则与自动化维护体系。同时对比局部索引与全局索引性能,展示后者在特定场景下的优势。进一步探讨并行查询优化、冷热数据分层存储及故障复盘,解决分区锁竞争问题。
|
关系型数据库 分布式数据库 PolarDB
《阿里云产品手册2022-2023 版》——PolarDB for PostgreSQL
《阿里云产品手册2022-2023 版》——PolarDB for PostgreSQL
789 0
|
存储 缓存 关系型数据库

热门文章

最新文章

推荐镜像

更多