Skip to content

Commit ac2ecb6

Browse files
committed
new doc
1 parent 77e74f7 commit ac2ecb6

File tree

8 files changed

+136
-1
lines changed

8 files changed

+136
-1
lines changed

201710/20171017_01.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,4 +397,31 @@ http://api.pgxn.org/src/trimmed_aggregates/
397397

398398
102. GPDB,支持GIN索引
399399

400-
103
400+
103. postgresql, pg_stat_all_tables, 建议添加autovacuum, auto analyze, analyze, vacuum等存储为数组,记录最近N次的操作统计信息,包括每次扫描了多少BLOCK,产生了多少DIRTY PAGE等等。
401+
402+
便于突发的IO或CPU的排错。 目前只记录最后一次,而且统计信息只能到LOG里面翻看,不够便捷。
403+
404+
-[ RECORD 57 ]------+---------------------------------------
405+
relid | 16794
406+
schemaname | public
407+
relname | xxx
408+
seq_scan | 0
409+
seq_tup_read | 0
410+
idx_scan | 7878
411+
idx_tup_fetch | 29897
412+
n_tup_ins | 48337
413+
n_tup_upd | 0
414+
n_tup_del | 0
415+
n_tup_hot_upd | 0
416+
n_live_tup | 765193
417+
n_dead_tup | 0
418+
n_mod_since_analyze | 13404
419+
last_vacuum |
420+
last_autovacuum | 2018-01-16 17:42:57.694793+08
421+
last_analyze |
422+
last_autoanalyze | 2018-01-13 09:13:02.457322+08
423+
vacuum_count | 0
424+
autovacuum_count | 1
425+
analyze_count | 0
426+
autoanalyze_count | 1
427+

201710/20171017_05.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## [未完待续] PostgreSQL\Greenplum Customer 社区管理 TODO
2+
3+
### 作者
4+
digoal
5+
6+
### 日期
7+
2017-10-17
8+
9+
### 标签
10+
PostgreSQL , Greenplum , TODO
11+
12+
----
13+
14+
## 背景
15+
1、每年N人次 PG开发、管理培训
16+
17+
2、每年N场次布道(企业案例)。
18+
19+
3、每年扩展N家企业加盟中国开源联盟PG分会
20+
21+
4、每年扩展N位中国开源联盟PG分会专家成员
22+
23+
5、每年新增N位初、中、高级PG认证成员。
24+
25+
6、每年新增N家使用PG的企业。

201710/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
##### 20171018_03.md [[未完待续] PGQ 异步消息队列的使用》](20171018_03.md)
2929
##### 20171018_02.md [《PostGIS 距离计算建议 - 投影 与 球 坐标系, geometry 与 geography 类型》](20171018_02.md)
3030
##### 20171018_01.md [《PostgreSQL 10 + PostGIS + Sharding(pg_pathman) + MySQL(fdw外部表) on ECS 部署指南(适合新用户)》](20171018_01.md)
31+
##### 20171017_05.md [[未完待续] PostgreSQL\Greenplum Customer 社区管理 TODO》](20171017_05.md)
3132
##### 20171017_04.md [《Greenplum 类型一致性使用注意 - 索引条件、JOIN的类型一致性限制》](20171017_04.md)
3233
##### 20171017_03.md [《Greenplum 点查询的优化(分布键)》](20171017_03.md)
3334
##### 20171017_02.md [《PostgreSQL DISTINCT 和 DISTINCT ON 语法的使用》](20171017_02.md)

201801/20180117_01.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## [转载]MySQL和PostgreSQL的数据类型对比
2+
3+
### 作者
4+
digoal
5+
6+
### 日期
7+
2018-01-17
8+
9+
### 标签
10+
PostgreSQL , MySQL , 类型
11+
12+
----
13+
14+
## 背景
15+
作者:凌络
16+
17+
在去年的DBMS评比中,[PostgreSQL夺冠](https://mp.weixin.qq.com/s/Shs5kiQ6vM7gj7KAXCNelA),PostgreSQL一直保持上升姿态,越来越多的客户选择使用PostgreSQL,还有一部分客户从MySQL迁往PostgreSQL,那PostgreSQL和MySQL对于开发者来说的差异在哪里呢?我们先看下数据类型。
18+
19+
## 数据类型
20+
![pic](20180117_01_pic_001.png)
21+
22+
看着不方便的可以下载附件:
23+
[MySQL & PostgreSQL数据类型.xlsx](20180117_01_doc_001.xlsx)
24+
25+
## 参考资料
26+
https://en.wikibooks.org/wiki/Converting_MySQL_to_PostgreSQL

201801/20180117_01_doc_001.xlsx

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<script src="/home/js/jquery-1.11.3.min.js"></script>
7+
<script src="/home/js/common.js"></script>
8+
</head>
9+
<body>
10+
<div id="_umfp" style="width:0px;height:0px;overflow:hidden">
11+
</div>
12+
<form method="post" id="form" >
13+
<input type="hidden" name="action" value="PreLoginAction" />
14+
<input type="hidden" name="event_submit_do_PreLogin" value="false" />
15+
<input type="hidden" id="deviceIp" name="deviceIp" value=""/>
16+
<input type="hidden" name="caLoginKey" value=""/>
17+
<input type="hidden" name="umidTokenId" value="T0c881436fbba7219f78386d0f47eed3e" >
18+
<!-- <input type="hidden" name="domain" value="" > -->
19+
</form>
20+
<script type="text/javascript">
21+
22+
23+
setTimeout(function(){
24+
document.getElementById('form').submit();
25+
}, 800);
26+
27+
28+
</script>
29+
</body>
30+
</html>
31+
<script>
32+
(function (w, d, t) {
33+
var s = d.createElement(t), m = d.getElementsByTagName(t)[0];
34+
s.async = 1;
35+
s.src = "https://g.alicdn.com/sd/pointman/js/pt2.js?_=" + Math.floor((new Date()).getTime() / 36e5);
36+
m.parentNode.insertBefore(s, m);
37+
38+
w._pointman_q = w._pointman_q || [];
39+
_pointman_q.push(["um", function (umx) {
40+
var container = document.getElementById("_umfp");
41+
umx.init({
42+
timeout: 3000,
43+
userId: '',
44+
token: 'T0c881436fbba7219f78386d0f47eed3e',
45+
userFieldId: 'loginAccountInput',
46+
serviceLocation: "cn",
47+
appName: 'buc',
48+
model: 'L1',
49+
containers: {flash: container, dcp: container}
50+
});
51+
}]);
52+
})(window, document, "script");
53+
</script>

201801/20180117_01_pic_001.png

152 KB
Loading

201801/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### 文章列表
22
----
3+
##### 20180117_01.md [[转载]MySQL和PostgreSQL的数据类型对比》](20180117_01.md)
34
##### 20180116_02.md [《PostgreSQL 商用版本EPAS(阿里云ppas) SQL防火墙使用(白名单管理、防SQL注入、防DDL等)》](20180116_02.md)
45
##### 20180116_01.md [[]流数据库 概率计算概念 - PipelineDB-Probabilistic Data Structures & Algorithms》](20180116_01.md)
56
##### 20180115_01.md [《电商订单 + 物流信息对称补齐案例 - A, B表,到达时间交叉,增量JOIN补全C数据》](20180115_01.md)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ digoal's|PostgreSQL|文章|归类
2929

3030
### 未归类文档如下
3131
----
32+
##### 201801/20180117_01.md [[转载]MySQL和PostgreSQL的数据类型对比》](201801/20180117_01.md)
3233
##### 201801/20180116_02.md [《PostgreSQL 商用版本EPAS(阿里云ppas) SQL防火墙使用(白名单管理、防SQL注入、防DDL等)》](201801/20180116_02.md)
3334
##### 201801/20180116_01.md [[]流数据库 概率计算概念 - PipelineDB-Probabilistic Data Structures & Algorithms》](201801/20180116_01.md)
3435
##### 201801/20180115_01.md [《电商订单 + 物流信息对称补齐案例 - A, B表,到达时间交叉,增量JOIN补全C数据》](201801/20180115_01.md)
@@ -193,6 +194,7 @@ digoal's|PostgreSQL|文章|归类
193194
##### 201710/20171018_03.md [[未完待续] PGQ 异步消息队列的使用》](201710/20171018_03.md)
194195
##### 201710/20171018_02.md [《PostGIS 距离计算建议 - 投影 与 球 坐标系, geometry 与 geography 类型》](201710/20171018_02.md)
195196
##### 201710/20171018_01.md [《PostgreSQL 10 + PostGIS + Sharding(pg_pathman) + MySQL(fdw外部表) on ECS 部署指南(适合新用户)》](201710/20171018_01.md)
197+
##### 201710/20171017_05.md [[未完待续] PostgreSQL\Greenplum Customer 社区管理 TODO》](201710/20171017_05.md)
196198
##### 201710/20171017_04.md [《Greenplum 类型一致性使用注意 - 索引条件、JOIN的类型一致性限制》](201710/20171017_04.md)
197199
##### 201710/20171017_03.md [《Greenplum 点查询的优化(分布键)》](201710/20171017_03.md)
198200
##### 201710/20171017_02.md [《PostgreSQL DISTINCT 和 DISTINCT ON 语法的使用》](201710/20171017_02.md)

0 commit comments

Comments
 (0)