Page MenuHomePhabricator

SQL postgres error while deleting files
Closed, ResolvedPublic

Description

Author: nico.stuurman

Description:
Mediawiki-REL1.22 (git). Postgresql 9.3.1 as database server on CentOs 6.4. When deleting a file (any uploaded file) the following SQL error occurs:

Query:
SELECT rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev_user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,rev_content_format,rev_content_model,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM "revision" INNER JOIN "page" ON ((page_id = rev_page)) LEFT JOIN "mwuser" ON ((rev_user != 0) AND (user_id = rev_user)) WHERE page_id = '40' AND rev_id = '107' LIMIT 1 FOR UPDATE
Function: Revision::fetchFromConds
Error: 0A000 ERROR: FOR UPDATE cannot be applied to the nullable side of an outer join

Files remain in the system and can not be deleted.

I guess this SQL works under mysql but not in progres. I am not familiar with the mediawiki code, but happy to look and figure out how SQL-backend specifics are dealt with.


Version: 1.22.0
Severity: major
OS: Linux

Details

Reference
bz56174

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.
StatusSubtypeAssignedTask
InvalidNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:36 AM
bzimport set Reference to bz56174.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 49523 ***
Jdforrester-WMF subscribed.

Migrating from the old tracking task to a tag for PostgreSQL-related tasks.