SUMMARY: This article explains how to use Foreign Data Wrappers to access data in remote PostgreSQL and Oracle databases.
1. postgres_fdw
2. oracle_fdw
There are many...
SUMMARY: This article introduces hierarchical queries and shows the differences in their usage between Oracle and PostgreSQL.
1. Hierarchical query
2. Hierarchical query in Oracle
3. Displaying...
SUMMARY: This article discusses block structure in PostgreSQL, how to write an anonymous block, and how to divide a larger block into logical subblocks.
1. Block structure ...
I saw AT TIME ZONE used in a query, and found it confusing. I read the Postgres documentation and was still confused, so I played with some queries and finally figured it...
SUMMARY: This article covers how to use PostgreSQL together with the programming language Golang (Go). After showing how to get started with Go’s Object Relational Mapper, it...
SUMMARY: This article reviews five ways to sort table data using the ORDER BY clause together with the SELECT statement in PostgreSQL.
1. Sorting by column...
This article discusses the open source tool repmgr (Replication Manager) and how to set up and configure it for automatic failover in PostgreSQL.
1. Install PostgreSQL...
PostgreSQL is “The World’s Most Advanced Open Source Database,” and I believe it. In my 10+ years of working with it, it’s been solid, serving up data to SaaS loads...
SUMMARY: This article reviews the differences between stored procedures and functions in Postgres and the types of functionality they provide. Topics covered with examples include:
1. Stored...