Last modified: 2010-05-15 15:48:24 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 T11300, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9300 - When I try to restore page with Postgresql I get "cannot delete from a view"
When I try to restore page with Postgresql I get "cannot delete from a view"
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.9.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2007-03-15 18:41 UTC by Olleg Samoylov
Modified: 2010-05-15 15:48 UTC (History)
0 users

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


Attachments

Description Olleg Samoylov 2007-03-15 18:41:12 UTC
*  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)
Comment 1 Greg Sabino Mullane 2007-03-18 00:48:32 UTC
Fixed in 1.10 (no longer use a view)

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


Navigation
Links