EDB Failover Manager 3.0 and PostgreSQL 10.1
Edb Failover Manager edb-efm30 is now released and supports PostgreSQL 10.1. Efm is an EDB tool which can be used to perform a switchover and a failover in a PostgreSQL standby environment. In this...
View ArticleMySQL – Foreign keys and “Cannot delete or update a parent row: a foreign key...
As you know, foreign keys establish a sort of relationship between 2 tables. MySQL requires InnoDB storage engine to support foreign keys. In our example, we have the following parent table in a MySQL...
View ArticleParallel pg_dump is slow by default?
Short answer: Yes, it is. Being at a customer the last days we wanted to parallel pg_dump a 2TB database. We were quite surprised that it was quite slow and it was not immediately clear why it was....
View ArticleEnabled, Accepted, Fixed SQL Plan Baselines
When the documentation is not always clear, I prefer to build a test case to be sure about the behavior in different context and different versions. Here is a test on SQL Plan Management to show which...
View Article18c PDB switchover
In multitenant, the recovery and availability are at CDB level. But customers asked for a switchover at PDB level so Oracle has done that in 18c, based on refreshable PDBs. For this test I have two...
View ArticleConnect-times to the DB suddenly become very slow using sqlcl
I recently wrote a couple of sql-scripts which had to run on all of my customer’s DBs. The sql-scripts had to be started from a Linux-client, which does not have any Oracle client software installed....
View ArticleAutomatic Block Media Recovery in a DataGuard
With Oracle 12.2, in a Data Guard environment corrupted data blocks can be automatically replaced with uncorrupted copies of those blocks. There are just some requirements: • The physical standby...
View ArticleResult cache invalidation caused by DML locks
In a previous post about Result Cache, I was using ‘set autotrace on’ in my session to see when the result cache hit saves the logical reads. I got a comment, by e-mail and with full test case,...
View ArticleFinally you will be able to use exit and quit in psql
When giving the PostgreSQL DBA Essentials workshop one of the main issues people have is how they can exit psql. Even on stackoverflow this is a popular topic. The good news for people who still don’t...
View ArticleSQL Server 2017: What’s happens with an interruption during a Resumable...
Last week, I presented this option in our internal event, the dbi xChange. My colleague David Barbarin asked me this question, what’s append if an interruption occurs (reboot, SQL Server service...
View ArticleSQL Server 2017: Can I run a “standard” rebuild on the index after a...
This article is an additional article to my precedent about “SQL Server 2017: What’s happens with an interruption during a Resumable Online Index Rebuild?” The goal is to see after I suspend the...
View Articleredhat event Ansible Automates Zurich
Here are some fresh personal impressions from the “Ansible Automates Zurich” half day event organized by redhat. There was a overwhelming interest for this event. About 200 people filled the room and...
View ArticlePostgreSQL 11: Procedures and transaction control
Up to PostgreSQL 10 it was not possible to create procedures in PostgreSQL. Of course you can create functions which do not return anything but the possibility to create a procedure was not there. That...
View Articlepg_basebackup and redirecting progress messages to a file
Recently I came over that commit and wondered what that is about. The answer is quite simple but I didn’t know that this issue existed. Basically it is about how progress messages are written to screen...
View ArticleLocal partitioned indexes in PostgreSQL 11
When declarative partitioning was introduced with PostgreSQL 10 this was a big step forward. But as always with big new features some things do not work in PostgreSQL 10 which now get resolved in...
View ArticleWhat is the maximum in list size in PostgreSQL?
Yesterday, while being at a customer, an interesting question popped up: What is the maximum of in list values in PostgreSQL? I couldn’t answer although I never read somewhere that there is a limit....
View ArticleHash Partitioning in PostgreSQL 11
PostgreSQL 10 comes with partition support. But Hash Partitioning was not supported. PostgreSQL 11 will support Hash Partition. In the documentation we can read The table is partitioned by specifying a...
View ArticleUpdating the partition key now works in PostgreSQL 11
In the last post about partitioning improvements in PostgreSQL 11 we talked about unique indexes and primary keys on partitioned tables. Both did not work in PostgreSQL 10 but now do in PostgreSQL 11....
View ArticlePostgreSQL – logical replication with pglogical
Although PostgreSQL 10 integrate native logical replication (have a look here or here), it is always interesting to be aware of alternative solutions to the available in-core features. One of those is...
View ArticleWhen you execute the same statement thousands of times -> prepare it
Every time you send a SQL statement to PostgreSQL it must be parsed. Parsing is fast, yes, but parsing the same statement a thousand times can quickly sum up to quite some time the database could spend...
View Article