• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
TDsun
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

随笔分类 -  Postgresql

 
postgresql 最大连接数相关
摘要:PG中有一张表记录着当前有多少连接 表名:pg_stat_activity 查询当前连接数: select count(1) from pg_stat_activity; 查询最大连接数 show max_connections; 最大连接数也可以在pg配置文件中配置: 在postgresql.co 阅读全文
posted @ 2019-02-28 10:21 TDsun--> 阅读(4426) 评论(0) 推荐(1)
postgresql安装与启动(mac os)
摘要:转自https://blog.csdn.net/kmust20093211/article/details/44359053 数据库的安装与创建 安装 brew install postgresql 初始化数据库 initdb /usr/local/var/postgres -E utf8 创建一个 阅读全文
posted @ 2018-03-22 17:37 TDsun--> 阅读(7767) 评论(0) 推荐(0)
psql的安装与数据库创建(ubuntu)
摘要:来自阮一峰日志 http://www.ruanyifeng.com/blog/2013/12/getting_started_with_postgresql 安装 客户端安装 sudo apt-get install postgresql-client 服务端安装 sudo apt-get inst 阅读全文
posted @ 2018-03-16 18:12 TDsun--> 阅读(2529) 评论(0) 推荐(0)
psql备份和恢复(ubuntu)
摘要:备份 sudo pg_dump -U username -f filename.sql dbname 恢复 psql -U username -f filename.sql dbname 备份某张表 (导出dbname数据库中表tablename的数据,以insert语句的形式) sudo pg_d 阅读全文
posted @ 2018-03-16 18:01 TDsun--> 阅读(973) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3