代码改变世界

随笔档案-2016年05月

WAL

2016-05-30 13:47 by DataBases, 310 阅读, 收藏, 编辑
摘要: WAL record format typedef struct XLogRecord{pg_crc32 xl_crc; /* CRC for this record */XLogRecPtr xl_prev; /* ptr to previous record in log */Transacti 阅读全文

PostgreSQL auto_explain

2016-05-27 16:45 by DataBases, 494 阅读, 收藏, 编辑
摘要: The auto_explain module provides a means for logging execution plans of slow statements automatically, without having to run EXPLAIN by hand. This is 阅读全文

CPU informition

2016-05-27 11:41 by DataBases, 326 阅读, 收藏, 编辑
摘要: tar jxvf util-linux-ng-2.18.bz2cd util-linux-ng-2.18/./configure --enable-arch --enable-partx --enable-write --without-ncursesmakemake install[root@lo 阅读全文

Better PostgreSQL datacenter schema

2016-05-23 10:55 by DataBases, 272 阅读, 收藏, 编辑
摘要: 阅读全文

views of postgresql user password and encrypted or unencrypted

2016-05-12 11:27 by DataBases, 582 阅读, 收藏, 编辑
摘要: password_encryption = onpostgres=# create user user1 with encrypted password 'user1';CREATE ROLEpostgres=# create user user2 with unencrypted password 阅读全文

configs for postgresql restart and postgresql reload

2016-05-11 17:33 by DataBases, 486 阅读, 收藏, 编辑
摘要: postgres=# select name, setting, contextpostgres-# from pg_settings where context = 'postmaster'; name | setting | context + + allow_system_table_mods 阅读全文

pg_stat_statements

2016-05-05 13:41 by DataBases, 368 阅读, 收藏, 编辑
摘要: Functions pg_stat_statements_reset() returns void pg_stat_statements_reset discards all statistics gathered so far by pg_stat_statements. By default, 阅读全文

PG sys function

2016-05-04 15:54 by DataBases, 601 阅读, 收藏, 编辑
摘要: The System Catalogs of PostgreSQLscott=# \dS List of relations Schema | Name | Type | Owner + + + pg_catalog | pg_aggregate | table | postgres pg_cata 阅读全文

replication_slot and PostgreSQL Replication

2016-05-04 15:01 by DataBases, 1387 阅读, 收藏, 编辑
摘要: 主库IP:192.168.230.128 备库IP:192.168.230.129 PostgreSQL版本: 主备机PostgreSQL源码包均位于/opt/soft_bak OS:CentOS5 主备库PostgreSQL均安装在/usr/local/pg952目录下 数据目录均在/usr/lo 阅读全文

OLTP与OLAP的差异

2016-05-04 14:54 by DataBases, 666 阅读, 收藏, 编辑
摘要: OLTP与OLAP的差异 阅读全文
点击右上角即可分享
微信分享提示