PostgreSQL PITR实验】的更多相关文章

磨砺技术珠矶,践行数据之道,追求卓越价值 回到上一级页面: PostgreSQL基础知识与基本操作索引页     回到顶级页面:PostgreSQL索引页 看PostgreSQL中与PITR相关的设定: wal_level=archive … # - Archiving - archive_mode = on # allows archiving to be done # (change requires restart) archive_command = 'cp %p "/usr/local…
磨砺技术珠矶,践行数据之道,追求卓越价值 返回顶级页:PostgreSQL索引页 luckyjackgao@gmail.com 本页记录所有本人所写的PostgreSQL的基础知识和基本操作相关文摘和文章的链接: 1 psql-- ---1.1 psql and chinese-----------------------   如何使 Postgresql 的psql 使用 中文提示信息 ---1.2 psql change chinese info---------------   更改Pos…
磨砺技术珠矶,践行数据之道,追求卓越价值 回到上一级页面: PostgreSQL基础知识与基本操作索引页     回到顶级页面:PostgreSQL索引页 通过实验,可以发现,PostgreSQL中使用WAL log来存储到其他地方,来辅助完成PITR. 但是,WAL是16MB一个, 缺省情况下,如果一个WAL文件没有写满,它就不会被archive_command 调用来拷贝走. 如果长时间没有太多作业,可能有点WAL log会一直位于pg_xlog目录下作为online redo log存在.…
一.未做索引的查询效率 作为对比,先对未索引的查询做测试 EXPLAIN ANALYZE select * from gallery_map where author = '曹志耘'; QUERY PLAN ----------------------------------------------------------------------------------------------------------------- Seq Scan on gallery_map (cost=0.…
磨砺技术珠矶,践行数据之道,追求卓越价值回到上一级页面:PostgreSQL基础知识与基本操作索引页    回到顶级页面:PostgreSQL索引页[作者 高健@博客园  luckyjackgao@gmail.com] 实验过程如下.建表: 建立带引号的表名: postgres),age integer); CREATE TABLE postgres=# select * from GaoUser; ERROR: relation "gaouser" does not exist LI…
实验目的: 01.基于备份点直接恢复数据库 02.基于备份点后续增量wal日志恢复到特定的时间点 实验环境: centos7 postgresql9.5 01.安装postgresql9.5 postgresql9.5编译安装体验 注意:源码编译操作性更加强,也可以rpm安装 02.初始化数据库及创建归档目录 su - postgres [postgres@lab-210 ~]$ mkdir archivedir [postgres@lab-210 ~]$ initdb -D data1 -E…
磨砺技术珠矶,践行数据之道,追求卓越价值 回到上一级页面: PostgreSQL基础知识与基本操作索引页     回到顶级页面:PostgreSQL索引页 看了很多的例子,没有发现具体讲 recovery_target_time的例子,于是自己作一个吧 在开始之前,先把postgresql.conf的配置设置好: wal_level = archive # minimal, archive, or hot_standby # (change requires restart) # - Archi…
磨砺技术珠矶,践行数据之道,追求卓越价值 回到上一级页面: PostgreSQL基础知识与基本操作索引页     回到顶级页面:PostgreSQL索引页 一,从initdb开始,initdb执行结束后,看xlog: [pgsql@localhost pg_xlog]$ ls -lrt drwx------ pgsql pgsql Aug : archive_status -rw------- pgsql pgsql Aug : [pgsql@localhost pg_xlog]$ 然后,设置参…
apple=# begin; BEGIN apple=# set transaction ISOLATION LEVEL read committed ; SET apple=# select * from test; id | info ----+------- 2 | test 3 | test1 4 | test1 5 | test 6 | test 7 | test 8 | test1 9 | test1 10 | test 11 | test 1 | test 1 | test 1 |…
磨砺技术珠矶,践行数据之道,追求卓越价值回到上一级页面:PostgreSQL基础知识与基本操作索引页    回到顶级页面:PostgreSQL索引页[作者 高健@博客园  luckyjackgao@gmail.com] 由于数据少,执行计划中没有使用Index Scan postgres=# CREATE TABLE items ( postgres(# itemid serial NOT NULL PRIMARY KEY, postgres(# itemname text NOT NULL,…