码迷,mamicode.com
首页 >  
搜索关键字:pg inconsistent    ( 954个结果
Postgresql 数据库维护
删除数据库 sudo -u postgres dropdb $DB_NAME 导出数据库 pg_dump -h $DB_HOST -U $DB_USER --clean --schema=$DB_SCHEMA -d $DB_NAME > $DUMP_FILE_NAME 导入数据库 psql -U $...
分类:数据库   时间:2014-11-14 15:29:48    阅读次数:245
POSTGRESQL 查看用户使用情况以及杀掉相应的进程
一、查看哪些用户在链接数据库select * from pg_stat_activity ; 这里的pg_stat_activity其实是一个视图,它的定义可以在postgres这个数据库里面的视图部分找到。二、杀死进程 现在我们找出所有连接到数据库的进程了,那么如何去杀死那些IDEL的进程从而释放...
分类:数据库   时间:2014-11-14 13:59:42    阅读次数:363
pip 安装 psycopg2 安装及错误处理
错误及现象Error: pg_config executable not found.Downloading/unpacking psycopg2 Downloading psycopg2-2.5.4.tar.gz (682kB): 682kB downloaded Running setup......
分类:其他好文   时间:2014-11-12 19:34:43    阅读次数:1180
PostgreSQL复制集群概总
转自http://blog.csdn.net/beiigang/article/details/39099575pg的复制、高可用、负载均衡相关集群,这儿写个概要备查。pg有以下各种基于复制的集群方案,多数配过,有的当时没有整理。现在网上也有很多这些集群配置的文档,在这篇文档后找完备点的集中一下备档...
分类:数据库   时间:2014-11-08 11:49:24    阅读次数:235
利用管道迁移数据
磁盘空间不足的情况下,利用命名或者匿名管道迁移和导入数据;需要注意命名管道的权限问题。 0. Name PIP 0 [pg@h1 ~]$ psql gtlions -ac "select 't3' tab,count(*) from t3 union all select 't4',count(*) from t4;" select 't3' tab,count(*) from t3 uni...
分类:其他好文   时间:2014-11-06 11:09:31    阅读次数:206
高级CSS
target="_black"新窗口打开,且打开第二个链接出来的页面覆盖第一个页面.ui-pg-table td[dir="ltr"]{*width:94px;}.ui-pg-table input[type="text"],.ui-pg-table input[type="password"],....
分类:Web程序   时间:2014-11-04 12:55:45    阅读次数:222
ubuntu上跑python连接pg,报错 ImportError: No module named psycopg2
ubuntu上跑python连接pg,报错  ImportError: No module named psycopg2 root@pgproxy1:~# python /home/zxw/PGWriterTest_m.py  Traceback (most recent call last):   File "/home/zxw/PGWriterTest_m.py", line 4...
分类:编程语言   时间:2014-11-03 19:29:25    阅读次数:2370
How to drop a PostgreSQL database if there are active connections to it?
1、PostgreSQL 9.1 and below:SELECT pg_terminate_backend(pg_stat_activity.procpid)FROM pg_stat_activityWHERE pg_stat_activity.datname = 'TARGET_DB' AND....
分类:数据库   时间:2014-11-01 20:27:22    阅读次数:298
xml笔记
---------------------------------------------------------------------------------- 对于在xml文本元素中输出 只需对 xml中定义的实体> (>) < ( ]>pg: ]> 使...
分类:其他好文   时间:2014-10-22 23:32:05    阅读次数:231
PostgresSql开放局域网访问
1) 确认已经退掉所有的MASF终端和MSF GUI,然后打开PostgresSQL的启动文件在文件POSTGRESQL_START参数后面添加-h 0.0.0.0,让PostgreSQL启动时绑定到所有的IP地址。2) 打开PostgreSQL的访问控制文件pg_hba.conf在末尾处添加以.....
分类:数据库   时间:2014-10-21 21:23:10    阅读次数:212
954条   上一页 1 ... 87 88 89 90 91 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!