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.
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()