随笔 - 612, 文章 - 0, 评论 - 31, 阅读 - 74万

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  数据管理 - Postgres

摘要:关于PostgreSQL的备份和恢复详细信息请参阅《PostgreSQL中文文档》。备份:#pg_dump --username=postgres v70_demo > v70_demo_20130704.dump恢复:#createdb--username=postgres v70_demo_temp#psql--username=postgres v70_demo_temp < v70_demo_20130704.dump#dropdb--username=postgresv70_demo_temp 阅读全文

posted @ 2013-07-04 09:07 eastson 阅读(224) 评论(0) 推荐(0) 编辑

摘要:# 允许在本机上的任何用户使用 Unix 域套接字(本地连接的缺省)# 以任何数据库用户身份联接任何数据库# ## TYPE DATABASE USER CIDR-ADDRESS METHODlocal all all trust# 和上面相同,但是使用的是自环的(loopback)TCP/IP 连接# # TYPE DATABASE USER CIDR-ADDRESS METHODhost all all ... 阅读全文

posted @ 2013-05-28 11:20 eastson 阅读(427) 评论(0) 推荐(0) 编辑

摘要:CentOS 6.4当前软件源中的postgresql-server版本为8.4.13。1. 安装PostgreSQL Server:$ yum groupinstall "PostgreSQL Database server"默认的安装目录是/var/lib/pgsql。安装过程中会创建postgres用户和群组。安装完成后可以将服务postgresql设置成自启动:$ chkconfig postgresql on2. 启动postgresql服务,在此之前需要先初始化:$ service postgresql initdbInitializing database: 阅读全文

posted @ 2013-05-25 11:53 eastson 阅读(547) 评论(0) 推荐(0) 编辑

摘要:The "uuid-ossp" library enables you to generate UUID values server-side in Postgres.http://www.postgresql.org/docs/current/static/uuid-ossp.htmlThe technique to install this library changed as of Postgres 9.1, because of the new Extension feature. Installing and uninstalling are now easier 阅读全文

posted @ 2013-05-08 15:21 eastson 阅读(805) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示