Page MenuHomePhabricator
Feed Advanced Search

Apr 16 2022

Restricted Application added a project to T148628: 1.28-alpha / Error: 42P07 ERROR: relation "logging_log_id_seq" already exists: Performance-Team.

Today I was unable to rename a page. It was trying to insert into the logging table but that failed because log_id is NOT NULL but no default was set. I suspect it was caused by the same thing as my comment above, the wrong schema making some updates fail. (I rarely move pages, so I wouldn't notice until now.) The fix was this:

Apr 16 2022, 4:25 PM · Performance-Team, PostgreSQL, MW-1.29-release-notes, MW-1.28-release-notes, MW-1.29-release (WMF-deploy-2016-11-08_(1.29.0-wmf.2)), Patch-For-Review, MW-1.28-release, Regression, MediaWiki-libs-Rdbms

Apr 25 2020

Lkmorlan added a comment to T148628: 1.28-alpha / Error: 42P07 ERROR: relation "logging_log_id_seq" already exists.

Solved: In my case, several sequences, functions, and a type where in schema "mediawiki" while the rest was in schema "public". I moved everything to "public" and the update script worked perfectly. Example commands:

Apr 25 2020, 4:36 PM · Performance-Team, PostgreSQL, MW-1.29-release-notes, MW-1.28-release-notes, MW-1.29-release (WMF-deploy-2016-11-08_(1.29.0-wmf.2)), Patch-For-Review, MW-1.28-release, Regression, MediaWiki-libs-Rdbms

Jun 30 2019

Lkmorlan added a comment to T148628: 1.28-alpha / Error: 42P07 ERROR: relation "logging_log_id_seq" already exists.

I am seeing this error upgrading from 1.27 LTS to 1.31 LTS. PHP 7.2, PostgreSQL 9.6.14.

Jun 30 2019, 6:59 PM · Performance-Team, PostgreSQL, MW-1.29-release-notes, MW-1.28-release-notes, MW-1.29-release (WMF-deploy-2016-11-08_(1.29.0-wmf.2)), Patch-For-Review, MW-1.28-release, Regression, MediaWiki-libs-Rdbms