Page MenuHomePhabricator

logging table missing from pg_tables.sql [PostgreSQL]
Closed, ResolvedPublic

Description

The new logging table is not created on PostgreSQL, which kills any functions relying on that:

Warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "logging" 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: relation
"logging" does not exist

Backtrace:

  • DatabasePostgreSQL.php line 366 calls wfDebugDieBacktrace()
  • Database.php line 295 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: blocker

Details

Reference
bz389

Revisions and Commits

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 bz389.
bzimport added a subscriber: Unknown Object (MLST).

domas.mituzas wrote:

fixed by pg_tables.sql:1.3

Diffusion added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:19 AM
Jdforrester-WMF subscribed.

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