上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: pg_stat_activity是一个非常有用的视图,可以帮助排查pg的一些问题(如连接数目过多问题)。pg_stat_activity每行展示的是一个“process”的相关信息,这里的“process”可以理解为一个DB连接。 :The pg_stat_activity view will ha 阅读全文
posted @ 2016-04-22 09:23 Splace 阅读(8491) 评论(0) 推荐(1) 编辑
摘要: 转自:http://blog.163.com/digoal@126/blog/static/1638770402015112144250486/PostgreSQL是和Oracle最接近的企业数据库,包括数据类型,功能,架构和语法等几个方面。甚至大多数的日常应用的性能也不会输给Oracle。 但是Oracle有些函数或者包,默认PostgreSQL是没有的,需要安装orafce包来实现这些兼容... 阅读全文
posted @ 2016-04-11 16:32 Splace 阅读(2752) 评论(0) 推荐(0) 编辑
摘要: --对于分区表constraint_exclusion 这个参数需要配置为partition或on postgres=# show constraint_exclusion ; constraint_exclusion ---------------------- partition --创建父子表, 用于存储分区数据 create table t(id int primar... 阅读全文
posted @ 2016-04-11 11:22 Splace 阅读(695) 评论(0) 推荐(0) 编辑
摘要: count()函数功能:统计表中中某个字段或所有记录个数,字段值为null的不做统计。 手册中解释: COUNT returns the number of rows returned by the query. You can use it as an aggregate or analytic 阅读全文
posted @ 2016-04-05 18:18 Splace 阅读(1797) 评论(0) 推荐(0) 编辑
摘要: 此概念的接触是在做分区表的时候碰到的,分区表按时间字段分区,在查询时当where条件中时间为now()或者current_time()等时是无法查询的,即使进行格式转换也不行,只有是时间格式如‘2015-12-12’才能查询,在请教过以后说是函数形态的问题。搜索一篇文章介绍: 转自:http://b 阅读全文
posted @ 2016-03-28 16:05 Splace 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.163.com/duanpeng3@126/blog/static/885437352011724104741817/ 在 平时更新数据时,经常有这样一种更新,即将目标表中的数据与源表对比,如果存在记录,则根据源表中的值更新目标表中的数据,如果不存在的话,则新增入目标 阅读全文
posted @ 2016-03-23 19:24 Splace 阅读(693) 评论(0) 推荐(0) 编辑
摘要: 通过安装第三方插件pldebugger,可实现在pgadmin客户端对函数设置断点、调试,具体过程如下:1.下载pldebugger安装包:http://git.postgresql.org/gitweb/ 所有第三方插件都可在此下载,此处下载pldebugger.git2.拷贝安装将下载好的压缩包 阅读全文
posted @ 2016-03-10 13:08 Splace 阅读(4461) 评论(0) 推荐(0) 编辑
摘要: 错误提示: 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 阅读(18701) 评论(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 阅读(5213) 评论(0) 推荐(1) 编辑
摘要: 参考: 阅读全文
posted @ 2016-02-19 09:51 Splace 阅读(4945) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页