Database Administration & Monitoring Dealing with corrupted system indexes in PostgreSQL 14.11.2019 by Daniel Westermann This is something you do not want to see on an important PostgreSQL system: postgres@centos8pg:/home/postgres/ [pgdev] psql psql: error: could not connect to server: FATAL: index "pg_class_oid_index" contains unexpected zero page at block 0 HINT: Please REINDEX it. The hint(…)
Database Administration & Monitoring Can there be orphaned data files in PostgreSQL? 14.11.2019 by Daniel Westermann PostgreSQL, as all other relational database systems, needs to persist data on disk, either by writing the writing the write ahead log or by synchronization the data files on disk whenever there is a checkpoint. When(…)
Database Administration & Monitoring PostgreSQL 13 will allow to drop databases even when there are connections 13.11.2019 by Daniel Westermann One of the most popular blogs I've written about PostgreSQL was about the three databases that PostgreSQL creates by default (well, actually it is initdb that creates the databases). One of the(…)
Cloud, Database Administration & Monitoring A simple Terraform script to create an AWS EC2 playground 11.11.2019 by Daniel Westermann When I started to write the blog about AWS SSM I quickly realized that I need a way to bring up and destroy my AWS EC2 playground in an easy and reproducible way. There are several(…)
Cloud, Database Administration & Monitoring Avoiding patching madness by using AWS SSM 08.11.2019 by Daniel Westermann As we have more and more customers either currently moving to AWS or already moved much, if not even all, of their workloads to AWS, one question pops up quite frequently: Now that we have so(…)
Database Administration & Monitoring pg_auto_failover: Setup and installation 01.11.2019 by Daniel Westermann When I attended PGIBZ 2019 earlier this year, I talked with Dimitri about pg_auto_failover and I promised to have a look at it. Well, almost half a year(…)
Database Administration & Monitoring PostgreSQL 13 will come with partitioning support for pgbench 30.10.2019 by Daniel Westermann A lot of people use pgbench to benchmark a PostgreSQL instance and pgbench is also heavily used by the PostgreSQL developers. While declarative partitioning was introduced in PostgreSQL 10 there was no(…)
Database Administration & Monitoring PostgreSQL check_function_bodies, what is it good for? 27.10.2019 by Daniel Westermann One of the probably lesser known PostgreSQL parameters is check_function_bodies. If you know Oracle, then you for sure faced "invalid objects" a lot. In PostgreSQL, by default, there is nothing like an invalid object. That implies(…)
Database Administration & Monitoring Why you really should use peer authentication in PostgreSQL 22.10.2019 by Daniel Westermann It is always a bit of a surprise that many people do not know peer authentication in PostgreSQL. You might ask why that is important as initdb creates a default pg_hba.conf which(…)
Database Administration & Monitoring Where can you find core developers asking people what is missing in PostgreSQL? pgconf.eu.2019 17.10.2019 by Daniel Westermann One of the major advantages of PostgreSQL conferences when you compare it to other conferences is, that you can listen to talks where the actual developers are presenting their work. You have questions about a feature, you want to know(…)