TL;DR: Don't ever set fsync=off, don't kill -9 the postmaster then deletepostmaster.pid, don't run PostgreSQL on network file systems. Reports of database corruption on the PostgreSQL mailing list are uncommon, but hardly rare. While a few data corru…
1.PostgreSQL 9.1 and below: SELECT pg_terminate_backend(pg_stat_activity.procpid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'TARGET_DB' AND procpid <> pg_backend_pid(); PostgreSQL 9.2 and above: SELECT pg_terminate_backend(pg_stat_activ…
This info is from: http://www.codeproject.com/Articles/302405/The-Easy-way-of-changing-Collation-of-all-Database Have you encountered a problem where you wanted to change your database collation to default or even just change it to a different type?…
postgres-toolkit A collection of scripts and utilities to manage PostgreSQL servers. Allows DBA to perform complicated tasks with single commands. Focusing on frequent tasks for PostgreSQL DBA to improve their productivity and quality of operations.…
kali linux 系列教程之metasploit 连接postgresql可能遇见的问题 文/玄魂 目录 kali linux 下metasploit 连接postgresql可能遇见的问题................................ 1 前言............................................................................................................... 1…