Infrastructure at your Service

Tag

PostgreSQL Archives - Blog dbi services

Daniel Westermann

PostgreSQL indexes and operators

By | Database Administration & Monitoring | No Comments

Creating a standard B-tree index in PostgreSQL is nothing special and usually we do it without thinking about what happens in the background. For the standard data types like e.g. int or text we do not need to know anything about operators or operator classes. In those cases the standard operator class for the data type is applied and all is fine. But sometimes we need to know about the possibilities PostgreSQL comes with, and…

Read More
Daniel Westermann

Some basics about time zones in PostgreSQL

By | Database Administration & Monitoring | No Comments

As soon as you have an application which works across time zones you will have to deal with that properly in the database. I’ve seen many applications that didn’t care of that at the beginning, and much work had to be done to change the implementation afterwards. The one and only recommendation is: Do it properly from the beginning and you don’t have to think much about it in the future. PostgreSQL comes with all…

Read More
Daniel Westermann

In which order do triggers fire in PostgreSQL?

By | Database Administration & Monitoring | No Comments

When you are working with triggers it might be important to know in which order they fire. Of course, a “before” triggers fires before an “after” trigger. But what happens if you have two or more triggers for the same event? Maybe you want to make sure that a specific trigger is executed first (for whatever reason) or you want to make sure that another trigger is executed last. The good news is: You can…

Read More
Daniel Westermann

How much shared memory is PostgreSQL using? (2) – details

By | Database Administration & Monitoring | No Comments

In the last post in this two post series we’ve briefly looked at configuring huge pages on Linux for PostgreSQL. It became clear, that calculating the number of huge pages purely based on the setting of shared_buffers will not work. PostgreSQL requires more shared memory, but what exactly is it? Well, this is the goal of this post and I’ll introduce a new feature of PostgreSQL 15 which helps in identifying those bits without digging…

Read More
Daniel Westermann

How much shared memory is PostgreSQL using? (1) – basics

By | Database Administration & Monitoring | No Comments

Have you ever wondered if the value of shared_buffers is the only setting which controls how much shared memory PostgreSQL is actually using? There was a nice addition committed to PostgreSQL 15 recently, which helps in answering this question (more on that later). shared_buffers for sure is the biggest chunk of shared memory that PostgreSQL is using but there might be other factors which come into the game. You might ask yourself why that is…

Read More
Daniel Westermann

Temporal tables for PostgreSQL 15?

By | Database Administration & Monitoring | One Comment

One of the features which is currently missing in PostgreSQL is Temporal Tables. Other database systems have that since a long time and many people want to have in PostgreSQL as well. If you don’t know what it is, here is a short overview. Basically you can ask for a row as it was at a specific point in time. The patch which implements this, is currently in status “Ready for Committer”, which does not…

Read More
Marc Wagner

Nutanix Era with oracle databases : Part 1 – Introduction

By | Oracle | No Comments

I’m currently setting up a lab for Nutanix Era in order to be able to provide some presentation on this subject and see how Nutanix Era interacts with Oracle databases. I therefore thought it would be certainly helpful and a good opportunity to share the feedback I’m getting from this experience. The lab has been built using Nutanix Cluster free trial integrated with our AWS Cloud account. This fist blog intends to provide only a…

Read More
Karsten Lenz

Setup pgpass for replication

By | Database Administration & Monitoring | No Comments

This script provides functionality to setup passwordless authentication in PostgreSQL for defined Server Names. This is very helpful by using replication via repmgr and is not Linux Distribution specific, it was used till now with SLES 12, SLES 15 and RHEL 8 Clones. As all of my scripts it provides help how the usage is with -h parameter: $ [[[email protected] ~]$ sh pgpass.sh -h $ [[[email protected] ~]$ Usage: $ [[[email protected] ~]$ pgpass.sh [OPTION] $ [[[email protected]

Read More