随笔分类 -  postgresql

摘要:错误提示: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var 阅读全文
posted @ 2016-03-09 10:31 Splace 阅读(19123) 评论(0) 推荐(0)
摘要:其他见:http://my.oschina.net/ensn/blog/636766 本文利用pg_upgrade实现将8.4.18版本升级到9.5.0版本,8.4.18版本为RedHat系统自带pg数据库版本。 环境:Red Hat Enterprise Linux Server release 阅读全文
posted @ 2016-03-09 10:13 Splace 阅读(5301) 评论(0) 推荐(1)
摘要:参考: 阅读全文
posted @ 2016-02-19 09:51 Splace 阅读(4987) 评论(0) 推荐(0)
摘要:取当前日期的函数: (1) 取当前时间:select now() (2) 取当前时间的日期: select current_date (3) 取当前具体时间(不含日期) select current_time 时间的加减: Select now() (1) 取三天后的时间:select now() 阅读全文
posted @ 2016-02-17 15:49 Splace 阅读(1989) 评论(0) 推荐(0)
摘要:看PostgreSQL9的官方文档,我越看越迷糊,这表空间,数据库,模式,表,用户,角色之间的关系怎么在PostgreSQL里这么混乱呢?经过中午的一个小实验,我逐渐理清了个中来龙去脉。下面我来还原我的试验,并循序讲清其中关系。首先,实验出角色与用户的关系 在PostgreSQL中,存在两个容易混淆... 阅读全文
posted @ 2016-01-26 18:30 Splace 阅读(3522) 评论(0) 推荐(1)