Skip to content

Files

Latest commit

Dec 15, 2023
f400df2 · Dec 15, 2023

History

History
145 lines (33 loc) · 2.19 KB

20171126_02.md

File metadata and controls

145 lines (33 loc) · 2.19 KB

[未完待续] 数据库sharding

作者

digoal

日期

2017-11-26

标签

PostgreSQL , 生命周期管理


背景

准备shard

创建crypto插件(加密pwd), 用户需要记住public key

注册server(pkid, host, port, user, pwd, dbname, other options)

添加server

创建user mapping

添加dblink

建远程表(2PC)

number of shards

SQL

创建fdw table

创建主表,哈希分区表。

alter table drop table create index drop index

您的愿望将传达给PG kernel hacker、数据库厂商等, 帮助提高数据库产品质量和功能, 说不定下一个PG版本就有您提出的功能点. 针对非常好的提议,奖励限量版PG文化衫、纪念品、贴纸、PG热门书籍等,奖品丰富,快来许愿。开不开森.

digoal's wechat