Cached plan must not change result type

Problem

After the upgrade of a Bitbucket Server plug-in, you sometimes get the following error when using PostgreSQL:

"cached plan must not change result type"

This problem can happen under PostgreSQL when the plug-in gets upgraded to a new version which adds a column to an existing database table to provide new functionality. While this should be a transparent action, sometimes caching issues like this can occur under PostgreSQL. You can read more about this problem here: https://ecosystem.atlassian.net/browse/AO-697

Solution

Restart your Bitbucket Server instance and the problem should not occur anymore.

https://ecosystem.atlassian.net/browse/AO-697









SONAR™, SONARQUBE™ and SONARCLOUD™ are independent and trademarked products and services of SonarSource SA: see sonarsource.com, sonarqube.org, sonarcloud.io.