摘要:
一, 安装 环境介绍:官方说postgresql 9.3 版本之后支持HStore 插件,目前最新版本10.3 本次测试版本:10.1 或 9.6.2 进入psql 运行环境,使用管理员(高级别用户)进入服务器,连接某个应用数据库。 二, 使用Hstore 三, 性能测试 a) 数据准备,分拣平台2 阅读全文
摘要:
https://www.jianshu.com/p/82aaf352b772 这篇文章很不错,里面有个bug,可能是版本不对。 当前(2018-04-11)通过git 下载原代码时,在配置 pgxc_ctl.conf 文件时,需增加 不然在启动时,会报 “ERROR: could not open 阅读全文
摘要:
官方链接 http://gpdb.docs.pivotal.io/530/pdf/PSQLQuickRef-A02.pdf 阅读全文
摘要:
------ --- 导出 pg_dump -h *.*.*.* -p 5432 -d you_databasename -n you_schema -f you_sqlfile.sql ---- 替换schema 名称 sed -i 's/^SET search_path = oldyou_schemaname, pg_catalog;$/SET search_path = newyo... 阅读全文
摘要:
hive 打印log ,有时hive 在配置时默认不会将mapper reduce,过程输出,这时指定参数即可将过程输出。 阅读全文
摘要:
select now()-query_start as cost_time,* from pg_stat_activity where current_query not in ( '','') and waiting='f' order by waiting,cost_time DESC; 阅读全文
摘要:
版本1.10 以下链接为一个较低版本解决方案: http://blog.csdn.net/anmo/article/details/17083125 而我的情况有点作, 情况描述: 1,一个页面两个table,一个主table 一个弹出层table 2,每次打开弹出层,新打开的table URL会变 阅读全文
摘要:
https://www.cnblogs.com/chenjingyi/p/5741901.html 这篇博客写的好,字符串并不是+ 效率就一定比 "%" % ('a') 就低。 按照博主写的代码我再验证了下,果然“啪啪”打脸真响。 小量变量拼接还是 + 号靠谱,而且循环1万遍,花费3毫秒,不是性能程 阅读全文
摘要:
日期+1 select date '2018-01-14' + integer '1'; 结果: 2018-01-15 日期+1 后 转 20180101 日期字符串 select to_char(date '2018-01-14' + integer '1','yyyymmdd'); 结果:201 阅读全文
摘要:
安装 mongo模块 pip install pymongo 安装postgresql 驱动 pip install python-psycopg2 1 # -*- coding: utf-8 -*- 2 代码中 为mongo中有没有 "searchKey" 这列,有的话就显示,没有的话就为 '' 阅读全文