Error installing module: mimic_implicit_commit is already in use

Created on 8 May 2025, 3 days ago

Problem/Motivation

On FarmOS installations with PostgreSQL the farm_multitenant_install hook fails to create groups for existing organizations and displays the error:
Drupal\Core\Database\TransactionNameNonUniqueException: A transaction named mimic_implicit_commit is already in use

The problem is caused by a bug in the Drupal pgsql driver, which does not check for duplicate savepoint names. Issue 🐛 Postgres driver issue with nested savepoints mimic_implicit_commit duplicated Needs work describes the problem and its solution.

Proposed resolution

Install the latest patch at 🐛 Postgres driver issue with nested savepoints mimic_implicit_commit duplicated Needs work until such time as the fix in committed to core.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain Peacog

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024