Scaling with PostgreSQL 9.6 and Postgres-XLPostgres Conference China 2016 中国用户大会 Scaling with PostgreSQL 9.6 and Postgres-XL Mason Sharp mason.sharp@gmail.com Huawei Postgres Conference China 2016 中国用户大会 whoami • Engineer at Huawei (USA Postgres-XL Postgres Conference China 2016 中国用户大会 Agenda • PostgreSQL 9.6 Scaling Features • Scaling Solutions • Use Cases • Postgres-XL Postgres Conference China 2016 中国用户大会 BTW- PGConf US 2017 in New York Conference China 2016 中国用户大会 “We need to scale” “We need replication” Postgres Conference China 2016 中国用户大会 What are your requirements? Postgres Conference China 2016 中国用户大会 What are your requirements0 码力 | 87 页 | 1.16 MB | 1 年前3
实现PostgreSQL逻辑复制实战Postgres Conference China 2016 中国用户大会 实现PostgreSQL逻辑复制实战 王青松 神州飞象(北京)数据科技有限公司 Your Logo 2016Postgres中国用户大会 Postgres Conference China 2016 中国用户大会 简介 逻辑复制的功能是从PG的WAL日志中,读取数 据库更新信息,然后“翻译”(Decode)成逻 辑的形式,可发送到远程从库做数据同步。 PG WAL Other DB 2016Postgres中国用户大会 Postgres Conference China 2016 中国用户大会 为什么要选择逻辑复制? 2016Postgres中国用户大会 Postgres Conference China 2016 中国用户大会 数据库总体架构 PostgreSQL 主库 数据库中间件 备1 核心库 查询库 对数据库的读操作 备2 备份 归档 运维监控 数据库总体架构 应用 逻辑复制 2016Postgres中国用户大会 Postgres Conference China 2016 中国用户大会 SQL语句 数据 MYSQL PG ORACLE LOGICAL Broker M1 M2 M3 Mn Master0 码力 | 17 页 | 1.90 MB | 1 年前3
PostgreSQL WAL日志解析与应用Postgres Conference China 2016 中国用户大会 PostgreSQL WAL日志解析与应用 王硕 山东瀚高基础软件股份有限公司 2016Postgres中国用户大会 Postgres Conference China 2016 中国用户大会 CONTENTS Part 01 Part 02 Part 03 WAL 日志简介 利用 WAL 日志我们可以做什么? 2016Postgres中国用户大会 Postgres Conference China 2016 中国用户大会 Part 01 WAL 日志简介 2016Postgres中国用户大会 Postgres Conference China 2016 中国用户大会 Write Ahead Log Files • WAL 日 Block为WAL日志的最小单位, 其大小8k,由PageHeaderData 、 XlogRecord、 XLogRecData组成。 2016Postgres中国用户大会 Postgres Conference China 2016 中国用户大会 Write Ahead Log Files Segment 3 2 1 256 00000001 00000002 000000D40 码力 | 16 页 | 705.31 KB | 1 年前3
PostgreSQL 开发最佳实践PostgreSQL 开发最佳实践 digoal 阿里云 2016Postgres中国用户大会 目录 • 规约的重要性 • 命名规约 • 设计规约 • 管理规约 • 稳定性与性能建议 • 云数据库使用建议 2016Postgres中国用户大会 规约的重要性 2016Postgres中国用户大会 目录 • 规约的重要性 • 命名规约 • 设计规约 • 管理规约 • 稳定性与性能建议 • 云数据库使用建议 2016Postgres中国用户大会 命名规约 • quote_nullable • quote_ident • format (%L , %I) select c1 as 你好, c2 as 中国, .... from xxx where xxx; create table "班级" ("学号" int, "姓名" name is "????"; 使用有意义的对象名; 使用小写字母,下划线,数字; 2016Postgres中国用户大会 目录 • 规约的重要性 • 命名规约 • 设计规约 • 管理规约 • 稳定性与性能建议 • 云数据库使用建议 2016Postgres中国用户大会 设计规约 • 返回多行 • select * from tbl where xxx=? order by0 码力 | 16 页 | 381.36 KB | 1 年前3
postgresql操作手册第一个94为自动生成的规则编号,前面的0.0.0.0为网段,后面的0.0.0.0为掩码 ★第4章、创建用户并授权 # su postgres # psql #初次登录需要切换为postgres用户,直接登录,无 需密码 postgres=# alter user postgres with password #创建一个名为cof的 用户,并设置密码 postgres=# grant all on database db_test to cof; #给cof授权,有操作db_test 库的所有权限 postgres=# postgres=# revoke all on database db_test from cof; #撤销用户权限 postgres=# #删除用户 postgres=# exit; #退出PG交互界面 # psql -h localhost -p 5432 -U postgres #使用postgres用户登录,需要密 码,默认登录postgres库 postgres=#0 码力 | 17 页 | 445.84 KB | 1 年前3
阿里云 AnalyticDB for PostgreSQL
- 打造更简单易用的Cloud SQL Data WarehousePostgreSQL 公共云产品规格和实例选型: 【高性能】计算组 CPU/核 内存 用户数据空间 1x2C SSD 2 16GB 160GB SSD 1x16C SSD 16 128GB 1.28TB SSD 4x4C SSD 16 128GB 1.28TB SSD 【大容量】计算组 CPU/核 内存 用户数据空间 2x2C HDD 4 32GB 2TB HDD 2x18C HDD 36 高压缩比稀疏位图索引 (roaring bitmap),人群碰撞关联速度提升 10X+,广告圈人从离线变在线,最大化数据业务价 值。 数据银行依托阿里数据资源,为品牌商家提供数据分析 服务的平台,商家通过分析用户的购买行为等数据,以 提升商家的运营效率和效果,将蕴藏在数据中的价值挖 掘出来,持续催化品牌和消费者关系。 金融客户案例 – 某金融信息平台 国内知名的某互联网金融信息服务平 台,致力为个人、企业、金融机构提供0 码力 | 22 页 | 2.98 MB | 1 年前3
共 6 条
- 1













