Page MenuHomePhabricator

Special:Log fails on PostgreSQL
Closed, ResolvedPublic

Description

Seems to be a problem with the join.

Warning: pg_query() [function.pg-query]: Query failed: ERROR: column "log_namespace" does not exist in /var/www/html/gres/
includes/DatabasePostgreSQL.php on line 96
A database error has occurred Query: SELECT log_type, log_action, log_timestamp, log_user, user_name, log_namespace,
log_title, cur_id, log_comment FROM logging, "user" LEFT OUTER JOIN cur ON log_namespace=cur_namespace AND
log_title=cur_title WHERE user_id=log_user ORDER BY log_timestamp DESC LIMIT 50 OFFSET 0 Function: Error: 1 ERROR: column
"log_namespace" does not exist

Backtrace:

  • DatabasePostgreSQL.php line 366 calls wfDebugDieBacktrace()
  • Database.php line 297 calls DatabasePostgreSQL::reportQueryError()
  • SpecialLog.php line 166 calls DatabasePostgreSQL::query()
  • SpecialLog.php line 235 calls LogReader::getRows()
  • SpecialLog.php line 223 calls LogViewer::showList()
  • SpecialLog.php line 36 calls LogViewer::show()
  • SpecialPage.php line 257 calls wfSpecialLog()
  • SpecialPage.php line 172 calls SpecialPage::execute()
  • index.php line 93 calls SpecialPage::executePath()

Version: 1.4.x
Severity: normal

Details

Reference
bz393

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, 6:48 PM
bzimport set Reference to bz393.
bzimport added a subscriber: Unknown Object (MLST).

Modified Files:
SpecialLog.php
Log Message:
Re-order tables in FROM to get it working on PostgreSQL.

Jdforrester-WMF subscribed.

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