Database Administration & Monitoring PostgreSQL 12: New partition reporting functions 02.06.2019 by Daniel Westermann PostgreSQL 10 introduced declarative partitioning (with some limitations), PostgreSQL 11 improved that a lot (Updating the partition key now works in PostgreSQL 11, Insert…on conflict with partitions(…)
Database Administration & Monitoring PostgreSQL 12: Control when generic plans are used 31.05.2019 by Daniel Westermann When you are using prepared statements in PostgreSQL you might get a custom or a generic plan. Custom plans come with overhead of re-planning while generic plans avoid re-planning of the statement.
Database Administration & Monitoring Securely store passwords in PostgreSQL 31.05.2019 by Daniel Westermann Every application somehow needs to deal with passwords. Some use external authentication methods such as ldap, others us the the framework the database already provides and create users and roles. But it is also not uncommon that applications implement their(…)
Database Administration & Monitoring Can you start two (or more) PostgreSQL instances against the same data directory? 30.05.2019 by Daniel Westermann As PostgreSQL does not know the concept of running multiple instances against the same files on disk (e.g. like Oracle RAC) it should not be possible to start two or more instances against the same data directory. If that would(…)
Database Administration & Monitoring Creating PostgreSQL users with a PL/pgSQL function 25.04.2019 by Daniel Westermann Sometimes you might want to create users in PostgreSQL using a function. One use case for this is, that you want to give other users the possibility to create users without granting them the right to do so. How is(…)
Application integration & Middleware, Database Administration & Monitoring Bringing up an OpenShift playground in AWS 17.04.2019 by Daniel Westermann Before we begin: This is in no way production ready, as the title states. In a production setup you would put the internal registry on a persistent storage, you would probably have more than one master node and you would(…)
Database Administration & Monitoring PostgreSQL 12: Explain will display custom settings, if instructed 10.04.2019 by Daniel Westermann How many times did you try to solve a performance issue but have not been able to reproduce the explain plan? Whatever you tried you always got a different result. Lets say you managed to get a dump of the(…)
Database Administration & Monitoring PostgreSQL 12: Copying replication slots 09.04.2019 by Daniel Westermann The concept of replication slots was introduced in PostgreSQL 9.4 and was created to prevent a primary instance to delete WAL that a replica still needs to apply. That could happen when you have a network interruption or the replica(…)
Database Administration & Monitoring PostgreSQL 12: generated columns 06.04.2019 by Daniel Westermann PostgreSQL 12 will finally bring a feature other database systems already have for quite some time: Generated columns. What exactly is that and how does is look like in PostgreSQL? As usual, lets start with a simple test setup.
Database Administration & Monitoring PostgreSQL 12: More progress reporting 04.04.2019 by Daniel Westermann PostgreSQL 9.6 introduced a new view called pg_stat_progress_vacuum which gives information about currently running vacuum processes. That was a great addition because since then you could easily estimate on how long a specific vacuum process will(…)