1 Set max_connections to three times the number of processor cores on the server. Include virtual (hyperthreading) cores. Set shared_buffers to 4GB for servers with up to 64 GB of RAM. Use 8GB for systems with more than 64 GB of RA
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.
First: If your install isn't already damaged, you can drop unwanted PostgreSQL servers ("clusters") in Ubuntu using pg_dropcluster. Use that in preference to a full purge and reinstall if you just want to start with a freshly initdb'd PostgreSQL
This document describes the installation of PostgreSQL using the source code distribution. (If you are installing a pre-packaged distribution, such as an RPM or Debian package, ignore this document and read the packager's instructions instea
转自:https://severalnines.com/blog/top-pg-clustering-ha-solutions-postgresql If your system relies on PostgreSQL databases and you are looking for clustering solutions for HA, we want to let you know in advance that it is a complex task, but not imposs
原文 VS2012,VS2013,and VS2015Pro+NpgsqlDdexProvider+EFv6 how to(by @kenjiuno) Reference: #213 Overview Install Npgsql DDEX (Data Designer Extensibility) provider. Install Npgsql ADO.NET Data Provider. Visual Studio’s Entity Data Model wizard will be en
1.1 Synopsis In this part, we will explain how to create a load-balancer withnginxfor a lot of OpenERPservers.The load-balancing and the multi-process mode of OpenERPonly work with gunicorn.And in this case, the cron are not launched by the system. 1
coalesce(expr1,expr2,expr3...) 直到找到一个非null值返回,右边的表达式则不参与运算:若所有为null,返回null. eg:判断json是否包含某属性,若无,则取默认值. testdb=# select val * 2 from (select id, coalesce(cast(data->>'age' as decimal) , id ) val from testjson2)t; testdb=# select val * 2 from (select
磨砺技术珠矶,践行数据之道,追求卓越价值回到上一级页面: PostgreSQL集群方案相关索引页 回到顶级页面:PostgreSQL索引页[作者 高健@博客园 luckyjackgao@gmail.com] 客户的streaming replication的参数是这样的:synchronous_standby_names=‘’ 官方文档是这样说的: synchronous_standby_names (string) Specifies a comma-separated list o
postgresql数据库创建/修改/删除等写入类代码语法总结: 1,创建库 2,创建/删除表 2.1 创建表 create table myTableName 2.2 如果表不存在则创建表 create table if not exists myTableName 2.3 删除表 drop table if exists myTableName; 2.4 实例代码: drop table if exists myTableName; create table if not exists my