Skip to content

Open source Team

Posts published under the Open source Team account are collective contributions by the dbi services open infrastructure consultants. The practice covers open-source databases and platforms, PostgreSQL first of all, along with MySQL, MariaDB, and Linux, from architecture, replication, and high availability to performance tuning and operations under service level agreements, and contributes actively to the PostgreSQL community.

721 posts since September 2011

PostgreSQL 16: Playing with pg_stat_io (2) – evictions

In the last post in this little series we’ve looked at the “extends” statistic in pg_stat_io. In this post we’ll look at the “eviction” statistic. Before we go into the details: What is an eviction? Imagine the buffer cache is currently full and PostgreSQL needs to load another block from disk (or the OS cache). For this to work a… 

PostgreSQL 16: Playing with pg_stat_io (1) – extends

PostgreSQL 16 (currently in beta 2) will come with a new view for tracking I/O related statistics. I’ve written a very basic blog about pg_stat_io in the past. In this post and some follow up posts we want to dig a bit deeper into the various statistics this view provides. The first statistic we want to look at is “extends”.… 

Generated columns in PostgreSQL

Sometimes it becomes handy when you can auto-generate a column based on an expression. For this there is the concept of generated column. Those columns can be either of type “stored” (the derived value is computed when the column is written) or “virtual” (the derived value is computed when the column is being read). Currently PostgreSQL only supports the “stored”… 

PostgreSQL: System catalog modifications are currently disallowed

Today at a customer I faced this: “System catalog modifications are currently disallowed” which, honestly, I’ve never seen before. Why would someone try to modify the system catalogs, at least in a productive environment? It turned out to be pretty simple, but when I’ve seen this I was somehow lost. The command which was executed was: Sometimes customers do things… 

Between PostgreSQL Conference Germany 2023 and the Swiss PGDay 2023

The PostgreSQL Conference Germany 2023 is over and it was a success. We had 250 attendees which made this year’s edition of the conference the largest ever. For us the conference already started Monday evening with the speakers and volunteers social event and dinner. We had a great tour through the Zeche Zollverein and learned a lot about German mining… 

PostgreSQL 16: More statistics in pg_stat_*_tables

PostgreSQL 16 is already in feature freeze and Beta1 has been released on May 25th. This is the time you should start testing and report any issues back to the community. There are plenty of new features, as usual, and in this post we’ll take a look a additional statistics in the pg_stat_*_tables catalog views. Let’s create a small simple… 

2023.pgconf.de and the Swiss PGDay are just around the corner

Time flies, we are in June already and at the end of this month two PostgreSQL conferences will take place: There is 2023.pgconf.de, this year in Essen, the 27th of June. For the first time in the same week and for the first time one and a half day, there is the Swiss PGDay, the 29th and 30th of June… 

How a merge join produced the wrong result in PostgreSQL

This was a really interesting customer case and I learned a lot by troubleshooting this. The original request was: We have two databases connected via postgres_fdw and when a merge join is chosen by PostgreSQL we get the wrong result. Setting enable_mergejoin to off causes PostgreSQL to go for a hash join and the result is correct. Well, personally, I’ve… 

pgDay Paris 2023

Another great PostgreSQL community conference is over, and I came back with a lot of impressions yesterday. It was probably the worst time of the year for the conference to happen, as massive strikes are ongoing in France currently. Nothing the organizers could do here, as this of course was not known when the conference was planned. With some 100+… 

Microsoft Flexible Server Compute V5

Today I had the chance to move forwar with performance testing and some checks on two Flexible Server – Azure Database for PostgreSQL, one with 8vCPU, 64GB RAM and 512GB Storage (2300 IOPs) and another one with the same vCPU and Memory, but 2TB Storage (7500 IOPs). Microsoft told me that they have replaced the used Linux, from Ubuntu 18.04… 

Flexible Server for PostgreSQL, Status March 2023

As many know about a year ago I wrote some critical posts about Microsofts Flexible Server for PostgreSQL, now it is time to take a look again. At first, many promised functions where delivered with a latency of about one year or more, for example AAD integration or customer keys. One topic was Compute V4, the Cascade Lake Xeon CPUs…