Thread:Project:Support desk/deleteBatch.php doesn't work

I'm trying to use the deleteBatch.php maintenance script to delete atricles I imported before:

I get the following error:

A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script 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 = '4' AND rev_id = '4'  LIMIT 1   FOR UPDATE Function: Revision::fetchFromConds Error: 0A000 ОШИБКА: SELECT FOR UPDATE/SHARE не может применяться к NULL-содержащей стороне внешнего соединения

I have a clean install of Mediawiki 1.21.5 and PostreSQL as a backend.

It's strange to me that table names in this query are in double quotes and do not contain db schema name. If I remove the double qoutes, and schema name and launch that query manually, I don't get any errors.

How can I fix this problem?