Last modified: 2010-05-15 15:48:24 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 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