Simulating temporal tables with dblink and replication delay
How to simulate unsupported out of the box temporal tables in PostgreSQL using delayed streaming replication and dblink extension
PostGIS setup with Ubuntu 20.04.2
This post shows how to implement PostGIS setup on Ubuntu 20.04, how to install PostGIS packages & how to install extensions into database
Constraints over multiple rows in PostgreSQL
Constraints over multiple rows: How to cope with complex PostgreSQL constraints. Advanced techniques - enforce integrity; manage concurrency.
From MD5 to scram-sha-256 in PostgreSQL
by
Laurenz Albe |
06.2021 Since v10, PostgreSQL has provided support for scram-sha-256 for password hashing and authentication. This article describes how you can […]
Creating and refreshing materialized views in PostgreSQL
A “materialized view” is an integral feature of every advanced database system. How can you make use of materialized views in PostgreSQL?
For many people, “cross join” is something to be afraid of. They remember the time when they forgot the […]
Disabling autocommit in PostgreSQL can damage your health
by
Laurenz Albe |
06.2021 When analyzing customer's problems, I have seen the mess you can get into if you disable autocommit in your […]
Enabling and disabling autovacuum in PostgreSQL
UPDATED Aug 2023: How to enable and disable autovacuum in PostgreSQL: How does autovacuum really work? Can you simply turn it on and off?
UUID, serial or identity columns for PostgreSQL auto-generated primary keys?
by
Laurenz Albe |
05.2021 UPDATED 14.05.2022: Sometimes customers ask me about the best choice for auto-generated primary keys. In this article, I'll explore […]
Setting up PostgreSQL streaming replication
This tutorial will show you how to setup up and configure streaming replication for PostgreSQL 13 & how to set up database servers quickly.