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:
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Apr 16 2022
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.
Apr 25 2020
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:
Jun 30 2019
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.
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL