Last modified: 2013-10-25 18:56:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58174, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56174 - SQL postgres error while deleting files
SQL postgres error while deleting files
Status: RESOLVED DUPLICATE of bug 49523
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.22.0
All Linux
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2013-10-25 17:39 UTC by Nico Stuurman
Modified: 2013-10-25 18:56 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nico Stuurman 2013-10-25 17:39:21 UTC
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.
Comment 1 Marcin Cieślak 2013-10-25 18:56:12 UTC

*** This bug has been marked as a duplicate of bug 49523 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links