脚本编程PostgreSQL数据库管理脚本 适用于PostgreSQL数据库管理,使用普通用户postgres管理,参数为(start|stop|restart|condrestart|status) #!/bin/bash if < -f /... 2015年2月13日 脚本编程 6,943 2 阅读全文
工作笔记PostgreSQL流复制告警的处理 1、查看主库日志 # less /cache1/data/pg_log/postgresql-2014-01-17_000000.csv 提示:2014-01-09 10:13:31.637 CST,... 2015年2月13日 工作笔记 6,867 评论 阅读全文
脚本编程PostgreSQL数据库备份脚本 备份整个data目录,且保留2周 #!/bin/bash source /etc/profile source ~/.bash_profile export PGPASSWORD="xxxxxxxx"... 2015年2月11日 脚本编程 6,504 评论 阅读全文
工作笔记Keepalived在PostgreSQL高可用中的运用 一、需求背景 规避单web故障,单db故障,确保web对外稳定服务。解决db的单点问题成了需要突破的问题。 二、理论基础 阅读 https://github.com/chenzhiwei/linux/... 2015年2月11日 工作笔记 7,420 评论 阅读全文