Blog

As a novice user at Azure Database for PostgreSQL

Owing to growing popularity of PostgreSQL, more and more cloud providers have started offering their Database as a Service (DaaS) platform around PostgreSQL. What user gets is a fully managed, ready-to-use Database service. Microsoft Azure cloud announced their PostgreSQL as a service in May 2017. Disclaimer: This post is a purely personal view based on [...]

By | January 4th, 2018|Categories: Jobin PostgreSQL|Tags: , , , , |0 Comments

Salted Challenge Response Authentication Mechanism (SCRAM) authentication

Introduction to authentication: Confidentiality and authentication are necessary for security assurance over a telecommunication channel. "Confidentiality" assures that only the right users have access to the communication stream and "authentication" guarantees that the users at each end of the communication channel are who they say they are. The Salted Challenge Response Authentication Mechanism (SCRAM) is [...]

By | December 22nd, 2017|Categories: Jobin PostgreSQL|Tags: , , , |4 Comments

PostgreSQL 10’s Quorum Commit for Synchronous Replication

Introduction: PostgreSQL has been lauded for its robustness as an open-source object-relational database. With the introduction of each new version, the potency of the PostgreSQL database to store and wield highly proliferating data has also augmented. This also calls for protection of data should any unlikely event befall. PostgreSQL 10, along with many other flagship [...]

By | November 30th, 2017|Categories: Jobin PostgreSQL|Tags: , , |0 Comments

Towards PostgreSQL 10 with pg_logical

Introduction: The forte of pglogical is the ability to logically replicate without any downtime. This extends from an entire database to a single table or down further to even a few rows. The major intent of this document is to upgrade 9.4 (and above) PostgreSQL instances to PostgreSQL10 with less or no downtime. Prior to [...]

By | November 22nd, 2017|Categories: Jobin PostgreSQL|Tags: , , , |0 Comments

Migrating partitioned tables to PostgreSQL 10’s Native Partitioning

In this article, we will focus on upgrade from 9.4 (and above) versions to PostgreSQL 10, leveraging the full features of native partitioning. Test Environment: OS: CentOS 7 PostgreSQL version: 9.6.3 and 10.0 pg_partman version: 3.1.0 Migrating from 9.x version (partitioned table with inheritance) to pg10 (native partitioning) Consider a database with several tables some [...]

By | November 9th, 2017|Categories: Jobin PostgreSQL, Migration|Tags: , , , , |2 Comments

Upgrading to Postgres 10 : Postgres by BigSQL

Many are experimenting with Postgres 10 and testing their applications against it. Postgres binaries from BigSQL are inherently relocatable / portable . This makes it especially easy if you want try upgrading or just want to check the upgradability of your application. Here are the steps for an easy upgrade from Postgres 9.6 to Postgres [...]

By | October 25th, 2017|Categories: BigSQL, Jobin PostgreSQL|Tags: , , , |0 Comments

PostgreSQL 10.0 – Features New and Updated

Overview: PostgreSQL 10 contains many new features that will allow users to both scale out and scale up their PostgreSQL infrastructure. To upgrade to PostgreSQL 10 from any lower releases, a pg_dumpall dump and restore or pg_upgrade is necessary. In this article, we will go over some new features that have been added and also [...]

By | October 18th, 2017|Categories: Jobin PostgreSQL|Tags: , , , |0 Comments

Setting up PL/R with Postgres on Windows

1. Introduction Setting up extra extensions / features on proprietary platform like Windows is a challenge because we don't have a default build environment. Setting up a complete build environment for installing a language extension is bigger challenge. Thanks to vibrant community, many of the heavy lifting is already done. I would like to Acknowledge [...]

By | October 16th, 2017|Categories: BigSQL, Jobin PostgreSQL, PostgreSQL|3 Comments

set_user: Understanding Advanced Control Features – Whitelist

For this last post in our set_user series, let's look at how we can limit who is allowed to escalate to superuser at a super granular level. Whitelist By default, the whitelist parameter is set to allow all (*) users with set_user permissions to escalate to superuser. But what if you want to limit these [...]

By | October 11th, 2017|Categories: Holly PostgreSQL|Tags: , , , , , , , , |0 Comments

set_user: Understanding Advanced Control Features – Block Settings

Remember way back in the set_user Installation and Set-Up post when we edited postgresql.conf to add set_user to the shared_preload_libraries? Well, there are some additional parameters that may be optionally added to the config file and set to control their respective commands. Block settings First, let's look at the settings that limit users who have [...]

By | October 2nd, 2017|Categories: Holly PostgreSQL|0 Comments