原创 pgwatch2 之一 setup

os: ubuntu 16.04 db: postgresql 9.6.8 db: influxdb 1.7.5 grafana: 6.1.3 python3 pgwatch2 是使用 grafana 做展示界面,用來監控 postg

原创 pgwatch2 之二 influxdb post timeout

os: ubuntu 16.04 db: postgresql 9.6.8 db: influxdb 1.7.5 grafana: 6.1.3 python3 pgwatch2 編譯後的 pgwatch2 命令運行一段時間後就出現無法

原创 ubuntu 16.04 的 postgresql-contrib-9.6_9.6.8-1.pgdg16.04+1_amd64.deb 的 plpython 相關文件缺失

os: ubuntu 16.04 db: postgresql 9.6.8 這兩天在嘗試使用 pgwatch2 對 postgresql 做一些監控,其中有一個步驟就是在被監控的 postgresql 數據庫中創建 plpython,

原创 登錄 pgpool 的 9999 提示 DETAIL: message length (12) in slot 1 does not match with slot 0(8)

os: ubuntu 16.04 db: postgresql 9.6.8 pgpool-ii: 3.7.2 ip規劃 192.168.56.92 node1 192.168.56.90 node2 192.168.56.119 no

原创 zabbix_get 調試

zabbix_get 主要用戶在 server 端 調試使用. # dpkg -i zabbix-release_3.4-1+xenial_all.deb # apt update # apt install zabbix-get

原创 ntpdate 服務器

記錄一下靠譜的 ntpdate 服務器 ntp.sjtu.edu.cn (上海交通大學網絡中心NTP服務器地址)

原创 登錄 pgpool 的 9999 提示 psql: ERROR: MD5 authentication is unsupported in replication and master-slave

os: ubuntu 16.04 db: postgresql 9.6.8 pgpool-ii: 3.7.2 登錄 pgpool-ii 的本地 9999 端口時,出現異常 root@node2:/app/pgpool/etc# psq

原创 pg_squeeze

os: ubuntu 16.04 db: postgresql 10.6 pg_squeeze is an extension that removes unused space from a table and optionally

原创 TimescaleDB 時序數據庫 之二 timescaledb-tune

os: ubuntu 16.04 db: postgresql 10.6 A tool for tuning your TimescaleDB for better performance by adjusting settings

原创 TimescaleDB 時序數據庫 之三 create_hypertable

os: ubuntu 16.04 db: postgresql 10.6 版本 # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Descrip

原创 TimescaleDB 時序數據庫 之一 setup

os: ubuntu 16.04 db: postgresql 10.6 TimescaleDB 是個知名的時序數據庫,它是作爲 postgresql 的 extension 存在. 版本 # lsb_release -a No LS

原创 pg_bulkload

os: ubuntu 16.04 db: postgresql 10.6 pg_bulkload – it provides high-speed data loading capability to PostgreSQL users

原创 pg_store_plans

os: ubuntu 16.04 db: postgresql 10.6 版本 # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Descrip

原创 pg_plan_advsr

os: ubuntu 16.04 db: postgresql 10.6 pg_plan_advsr is a PostgreSQL extension that provides Automated execution plan t

原创 postgresql 表遷移表空間

os: ubuntu 16.04 db: postgresql 10.6 postgresql 的表空間其實就是操作系統的一個文件夾.有時候需要將熱點數據移動到SSD盤.就會在數據庫層面創建一個表空間指向SSD的文件夾目錄. 版本 #