PostgreSQL shutdown modes
PostgreSQL has three shutdown modes - smart, fast, immediate. Check out this blogpost to learn more about all of them.
Tracking changes in PostgreSQL
UPDATED 2023 - How to track changes made to tables in PostgreSQL - instructions how to use a generic changelog trigger for tracking changes.
Making random() deterministic - random generator in PostgreSQL
How to reproduce a random sequence of numbers. Reset the random generator to restart a certain value in PostgreSQL. random()
PostgreSQL: Finding Christmas presents
In this blog we are talking about KNN-search. KNN-search has been made for finding something close to what you are looking for.
effective_cache_size: Better set it right
effective_cache_size can have a serious impact on execution plans and change things dramatically. See what kind of difference it can make.
Operator classes explained
In this blog we are tallking about the topic operator class. We will show you some strategies for your database.
Common security issues prior to PostgreSQL 15
UPDATED July 2023: How to avoid security issues in PostgreSQL prior to v15 due to the public schema. Repair the problem.
Reducing space consumption
After digging through some customer source code yesterday I thought that it might be worth publishing a post about space consumption and enum types. It seems to be quite common to store status information as text fields. This is highly inefficient.
CREATE DOMAIN: Data type abstraction
In a procedural language such as C people will create typedefs & functions But what about data type abstraction in SQL?
Statistics are the rocket fuel behind performance. Learn to adjust histogram sizes for optimal performance results.