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 Warehouse准隔离级别 完备功能和生态,实现应用快速迁移或适配 • PB级数据秒级响应 MPP水平扩展架构,PB级数据查询秒级响应;向量化计算,及列存储智能索引,领先传统数据库引擎性能 3x; 新一代SQL优化器,实现复杂分析语句免调优 • 支持多模分析 通过PostGIS 插件支持 地理信息数据分析;MADlib 库内置100+ 机器学习算法库,实现数据智能探索;高性 能向量检索算法,支持视频/图像检索 PostgreSQL 公共云产品规格和实例选型: 【高性能】计算组 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 for PostgreSQL 优势 ETL 批量处理 • 复杂 SQL 调优 • 海量数据关联聚合 • 支持标准SQL,OLAP窗口函数,存储过程 • 新一代Cascade框架 分布式SQL优化器,复杂查询免调优 • MPP多节点全并行计算,PB级数据秒级响应 • 基于列存储的高性能大表扫描,及高压缩比 在线数据探索 • 高并发 • 任意维度随机查询 • 实时入库更新 • 高吞吐数据写入及更新0 码力 | 22 页 | 2.98 MB | 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
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
共 6 条
- 1













