Postgresql 存在session 会话不能删除数据库 ...
分类:
数据库 时间:
2019-01-19 22:51:48
阅读次数:
224
1、pg_dump 备份单一数据库 pg_dump仅导出数据库结构:pg_dump -U TestRole1 -s -f TestDb1.sql TestDb1 备份某个database,备份结果以自定义压缩格式输出:pg_dump -h localhost -p 5432 -U someuser ...
分类:
数据库 时间:
2019-01-19 22:14:41
阅读次数:
217
select (select relname from pg_class where oid=a.attrelid) relname , (select relname||'--'||(select description from pg_description where objoid=oid a... ...
分类:
数据库 时间:
2019-01-19 22:12:48
阅读次数:
589
一、DBUtils DBUtils 是一套允许线程化 Python 程序可以安全和有效的访问数据库的模块,DBUtils提供两种外部接口: PersistentDB :提供线程专用的数据库连接,并自动管理连接。 PooledDB :提供线程间可共享的数据库连接,并自动管理连接。 操作数据库模板: 二 ...
分类:
数据库 时间:
2019-01-19 17:34:10
阅读次数:
158
下载地址:https://get.enterprisedb.com/postgresql/postgresql 11.1 1 windows x64.exe Installation Directory: Data Directory: Please provide a password for t ...
分类:
数据库 时间:
2019-01-19 11:15:13
阅读次数:
1594
1、查看当前库的最大连接数 show max_connections; 2、查看当前数据库的活动连接数 select datname,application_name,pid,state from pg_stat_activity; 3、杀非活动进程 select pg_terminate_back ...
分类:
数据库 时间:
2019-01-18 15:38:40
阅读次数:
331
0. 启动pgsl数据库 1. 命令行登录数据库 1 psql -U username -d dbname -h hostip -p port 1 psql -U username -d dbname -h hostip -p port 1 psql -U username -d dbname -h ...
分类:
数据库 时间:
2019-01-18 10:15:01
阅读次数:
221
1.创建复制用户:CREATEUSERreplWITHreplicationloginpassword‘repl‘;2.编辑recovery文件:cat/pgdata/10/data/recovery.confstandby_mode=‘on‘primary_conninfo=‘host=192.168.56.202port=5432user=postgre
分类:
数据库 时间:
2019-01-17 16:52:28
阅读次数:
251
时序数据库:TimescaleDB, 基于 PostgreSQL, 支持 SQLKairosDB, 基于 CassandraCrateDB, 基于 Elastic Search, 但支持ANSI SQLInfluxDB, 是 db-engines 上排名第一的时序数据库, 最新版中集群功能不开源了, ...
分类:
数据库 时间:
2019-01-17 10:52:05
阅读次数:
1105
远程连接需要在postgresql中建立用户,即spideruser用户,postgres是作为服务器登陆的用户来使用,同时需要设置postgresql.conf pg_hba.conf开通权限以及5432端口 ...
分类:
其他好文 时间:
2019-01-16 11:53:49
阅读次数:
144