Allowing password authentication to access postgres on localhostAllow the possibility for account msf_user to use password based authentication to con...
分类:
数据库 时间:
2015-12-23 15:49:08
阅读次数:
304
PHP连接:php.ini中将extension=php_pgsql.dll前面的分号去掉,然后设置extension_dir指向php文件下的ext文件夹。正常情况下这样php就可以连接postgres了,但是我的仍然出错,提示“Fatal error: Call to undefined fun...
分类:
数据库 时间:
2015-12-18 18:03:02
阅读次数:
1145
package postgre_dump;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.IOException;import java.io.InputStream;import java.io....
分类:
编程语言 时间:
2015-12-18 14:33:30
阅读次数:
268
http://www.datadoghq.com/2013/08/100x-faster-postgres-performance-by-changing-1-line/SELECT c.key, c.x_key, c.tags, x.nameFROM context cJOIN x ON c.x_...
分类:
其他好文 时间:
2015-12-15 18:09:23
阅读次数:
190
postgres=# create type complex as(postgres(# r double precision,postgres(# i double precisionpostgres(# );CREATE TYPEpostgres=# create type inventory_...
分类:
数据库 时间:
2015-12-14 16:37:32
阅读次数:
306
使用createuser来创建用户[plain]view plaincopyprint?[postgres@web1~]$/data/pgsql/bin/createuser--helpcreateusercreatesanewPostgreSQLrole.Usage:createuser[OPTI...
分类:
其他好文 时间:
2015-12-10 13:08:21
阅读次数:
171
postgres=# \h create tablespace Command: CREATE TABLESPACEDescription: define a new tablespaceSyntax:CREATE TABLESPACE tablespace_name [ OWNER ...
分类:
数据库 时间:
2015-12-07 20:31:00
阅读次数:
185
如何查看使用PostgreSQL的RPM包安装后的文件目录及相关路径(PostgreSQLRPM的spec文件已经帮我们创建好了postgres用户及postgres组)。查看RPM文档信息:/usr/share/doc/rpm-4.11.1RPM数据库文件:file /var/lib/rpm/* ...
分类:
数据库 时间:
2015-11-28 10:30:24
阅读次数:
305
前段时间正在学习服务器部署,但由于公司正好碰上几个项目要赶着上线,帮着其他组做项目去了,服务器的部署就耽搁了。昨天重新在CentOS6.6上安装了Nginx,也正好记录一下安装中碰到的一些问题。 setup是我们公司安装应用服务器时的一个目录,里面包含nginx、tomcat、postgreS...
分类:
系统相关 时间:
2015-11-27 10:49:42
阅读次数:
227
python的很多组件都必须依靠pip来安装,比如elasticsearch驱动、postgres驱动Python2.7以后的版本自带pip,centos6.5之前yum自带的python为2.6,所以需要手工安装,安装方法如下:方法一:安装epel的yum源yum install -y pytho...
分类:
其他好文 时间:
2015-11-22 00:19:26
阅读次数:
175