Page MenuHomePhabricator

When I try to restore page with Postgresql I get "cannot delete from a view"
Closed, ResolvedPublic

Description

Author: olleg_s

Description:

  • MediaWiki: 1.9.3
  • PHP: 5.2.0-8+etch1 (apache2handler)
  • PostgreSQL: PostgreSQL 8.1.8 on x86_64-pc-linux-gnu, compiled by GCC cc (GCC)

4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

Delete article and restore it. Warning on html page:

<b>Warning</b>: pg_query() [<a href='function.pg-query'>function.pg-query</a>]:
Query failed: ERROR: cannot delete from a view
HINT: You need an unconditional ON DELETE DO INSTEAD rule. in
<b>/usr/share/mediawiki1.9/includes/DatabasePostgres.php</b> on line <b>389</b>

Error in postgresql log:
2007-03-15 21:34:28 MSK ERROR: cannot delete from a view
2007-03-15 21:34:28 MSK HINT: You need an unconditional ON DELETE DO INSTEAD rule.
2007-03-15 21:34:28 MSK STATEMENT: DELETE /* PageArchive::undeleteRevisions */
FROM archive WHERE ar_namespace = '0' AND ar_title = 'Main_Page' AND (1 = 1)


Version: 1.9.x
Severity: normal

Details

Reference
bz9300

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.

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:39 PM
bzimport set Reference to bz9300.
bzimport added a subscriber: Unknown Object (MLST).

Fixed in 1.10 (no longer use a view)

Jdforrester-WMF subscribed.

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