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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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