postgresql
yuanchao99
这个作者很懒,什么都没留下…
展开
-
ubuntu上PostgreSQL的安装
http://www.postgresql.org/download/linux/ubuntu/PostgreSQL Apt RepositoryIf the version included in your version of Ubuntu is not the one you want,you can use the PostgreSQL Apt Repository. Th转载 2013-05-24 16:02:12 · 2521 阅读 · 0 评论 -
PostgreSQL基本操作
创建数据库: CREATE DATABASE db_test WITH OWNER = postgres ENCODING = 'UTF8';删除数据库:DROP DATABASE db_test;创建表CREATE TABLE 表名 ( id serial unique primary key not null, name text not null);删除表原创 2012-10-09 12:50:42 · 4904 阅读 · 0 评论 -
postgresql-9.3安装
yum install http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm原创 2014-10-30 08:50:51 · 2573 阅读 · 0 评论 -
postgresql安装完成后的操作
1. 修改数据库的postgres账号的密码 1) su - postgres (以postgres账号登录) 2) psql 3) ALTER USER postgres WITHPASSWORD 'psql-9.3-vpaas'; (修改postgres账号的密码为psql-9.3-vpaas或其它) 4原创 2015-04-06 11:08:36 · 3110 阅读 · 0 评论 -
PostgreSQL 增量备份详解以及相关示例
http://blog.chinaunix.net/uid-259788-id-4069007.htmlPostgreSQL 没有类似MySQL 的二进制日志, 但是有和MySQL 类似的REDO LOG,并且有MySQL 没有的REDO 归档功能。当然REDO 的归档已经MariaDB 和Percona-MySQL 已经实现。那我们就利用PGSQL的REDO 归档,也叫WAL来实现增量备转载 2015-07-15 14:30:54 · 1242 阅读 · 0 评论 -
postgresql-9.3的增量备份
1. 使用pg_basebackup获得基础备份1. 修改postgresql.confvim /var/lib/pgsql/9.3/data/postgresql.conf,修改以下内容:wal_level = archive archive_mode = onarchive_command = 'test ! -f /data/pgsql-9.3-backup/incr原创 2015-07-15 16:36:26 · 1880 阅读 · 0 评论