
PostgreSQL: CREATE STATISTICS - advanced query optimization
The PostgreSQL query planner doesn't know which data usually correlates. How to use CREATE STATISTICS to find correlations.
272 articles from CYBERTEC PostgreSQL.

The PostgreSQL query planner doesn't know which data usually correlates. How to use CREATE STATISTICS to find correlations.

To find the best execution plan PostgreSQL is relying on statistics to give the optimizer an indication of what to expect.

This article explains how to partition an area of interest spatially: Approximation of customer potential using PostGIS. Catchment areas.

This article covers scaling advices for PostgreSQL and explains why it may be a good idea to keep it simple on the database side.

Learn how PostgreSQL can help with basic calculations regarding golden proportions. Do mathematics in your database development work.

Update/ upgrade: what's the difference? This blog post covers the best ways of upgrading or updating PostgreSQL to the latest release.

Replication conflicts can cause problems with streaming replication. This article tells you what they are and how to deal with them.

vip-manager is a simple to use tool to handle service IPs in a PostgreSQL Patroni cluster | PostgreSQL High Availability Cluster

Foreign keys will introduce some issues which have to be considered when writing applications. If a foreign key is in place the inseration order starts to matter.

HOT updates (Heap Only Tuple) boost PostgreSQL DML performance. This article explains the concept, shows examples and gives tuning advice.

SQL and PostgreSQL can be used to create sample data which possesses certain statistical properties like a normal distribution.

How can you find data even if there are typos? In PostgreSQL there are various solutions to the problem of a search with odd spelling.

GROUP BY is an integral part of SQL and PostgreSQL. You might not know that the GROUP BY expression can handle more than just simple fields.

This article gives a simple introduction with examples to recursive queries in PostgreSQL. It also includes a comparison to Oracle recursive queries.

In this blog posting you find out: What is fillfactor and how does it affect PostgreSQL performance? | Effects & Testing

The most significant changes in pgwatch2 v1.8. PGWatch2 is a PostgreSQL monitoring tool - useful dashboard

Calculating differences between rows | How can one calculate the difference between the current and the previous row? | timeseries data

“If we had this data what would it mean?” - read more about this PostgreSQL technique, what it is good for & how it works.

Connection of DB2 with PostgreSQL done with the extension db2_fwd | Migration of db2's data to PostgreSQL | Read data from DB2

Table functions & performance: Solve performance issues related to stored procedures and or a composite data type in PostgreSQL

How to use a hierarchical query, which is an SQL query that handles model data such as the structure of organizations - find out more

How to use partition management to speed up queries in PostgreSQL and make tables more manageable as data amounts grow.

This article discusses the question if binary data should be stored inside PostgreSQL or not. The performance of the various options is benchmarked.

How to build your first Recurrent Neural Network (RNN) for series forecasting | Usage of Long Short Term Memory (LSTM)

How to use MobilityDB for contact tracking. Extension built on top of PostGIS, specializing on processing and analysing spatio-temporal data

UPDATE July 2023: What could be better in PostgreSQL? Find out about its weak points, and see what has improved since 2020.

PostgreSQL v13 introduces autovacuum for insert-only tables. This article tells you why and how to make use of this new feature.

PostGIS' functions can be used to trace down infected people and their contact with healthy individuals | GPS-Tracks | spatial data

The overuse of subtransactions in PostgreSQL can harm performance - find out how to diagnose if you are suffering from it.

Adjusting checkpoints is useful when tuning a server and improves the database performance. Furthermore, it helps to reduce WAL.

Visualizing OSM datasets with QGIS. Generation of some nice maps on the client | Map Styling in QGIS | Adding Spatial data

Postgres Tips and Tricks: Benefit from these little Time-Saving commands, SQL snippets or PostgreSQL features for PostgreSQL users.