Checking per-memory context memory consumption
Internally PostgreSQL makes use of so called “memory contexts”. What is the idea and what are the advantages? Find out here.
Shrink the storage footprint of PostgreSQL data
Keep the order of your columns in mind to unleash optimization potentials and reduce the table size in your PostgreSQL database.
pg_resetxlog: renamed to pg_resetwal
pg_resetxlog was formerly a feature of PostgreSQL. This has been renamed to pg_resetwal, see the update in the blog.
Optimization issues: Cross column correlation
UPDATED Sept. 2023 - A couple of years ago I stumbled over an interesting PostgreSQL issue which is commonly known as “cross correlation”.
Detecting wrong planner estimates
The PostgreSQL planner optimizes your queries, and mostly does it right. The question is: How to figure out when & where things do go wrong?
CREATE CAST: Casting integer to IP in PostgreSQL
How to store and process IP addresses in an efficient way. To do so PostgreSQL provides us with data types by casting integer.
Regular expressions unleashed in PostgreSQL
How to use an operator to work with regular expressions in PostgreSQL: includes list and a case-sensitive example. Fun with coding PostgreSQL
Bypassing the transaction log
When data is changed generally the change must be written to the xlog before it is written to the underlying table.
Detecting fraud: Benford's law
Benford's law is a mechanism, which is widely used in many fields. Especially accounting fraud can be detected nicely using this simple law of mathematics.
Fed up with long WHERE-clauses?
What if you want to compare dozens of columns with each other in PostgreSQL? Find out how to do it right here.