Page MenuHomePhabricator

PostgreSQL: Site stats broken
Closed, ResolvedPublic

Description

Author: matt

Description:
I had mediawiki working fine with 1.4.1. I upgraded to 1.4.4, updated my
site_stats table to the new definition, and now get the error logged below. I
don't think pg supports LIMIT clauses in UPDATE commands. Removing the LIMIT
clause in SiteStatsUpdate.php fixed this for me.

Warning: pg_query(): Query failed: ERROR: syntax error at or near "LIMIT" at
character 89 in /home/www/includes/DatabasePostgreSQL.php on line 99
A database error has occurred Query: UPDATE "site_stats" SET
ss_total_views=ss_total_views+1 LIMIT 1 Function: SiteStatsUpdate::doUpdate
Error: 1 ERROR: syntax error at or near "LIMIT" at character 89

Backtrace:

  • GlobalFunctions.php line 507 calls wfbacktrace()
  • DatabasePostgreSQL.php line 419 calls wfdebugdiebacktrace()
  • Database.php line 333 calls databasepostgresql::reportqueryerror()
  • SiteStatsUpdate.php line 123 calls databasepostgresql::query()
  • index.php line 211 calls sitestatsupdate::doupdate()

Version: 1.4.x
Severity: normal

Details

Reference
bz2100

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.
StatusSubtypeAssignedTask
InvalidNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:29 PM
bzimport set Reference to bz2100.
bzimport added a subscriber: Unknown Object (MLST).
Jdforrester-WMF subscribed.

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