From 6ff3f5942967d7b5771797bcee27beff0ff64358 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 30 Apr 2008 14:20:36 +0000 Subject: [PATCH] Add pf_memory to profiling table for Postgres --- maintenance/postgres/tables.sql | 1 + maintenance/updaters.inc | 1 + 2 files changed, 2 insertions(+) diff --git a/maintenance/postgres/tables.sql b/maintenance/postgres/tables.sql index faf1cd1309..40a948e2b3 100644 --- a/maintenance/postgres/tables.sql +++ b/maintenance/postgres/tables.sql @@ -515,6 +515,7 @@ $mw$; CREATE TABLE profiling ( pf_count INTEGER NOT NULL DEFAULT 0, pf_time NUMERIC(18,10) NOT NULL DEFAULT 0, + pf_memory NUMERIC(18,10) NOT NULL DEFAULT 0, pf_name TEXT NOT NULL, pf_server TEXT NULL ); diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 8eeb212f60..d2846636ea 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -1412,6 +1412,7 @@ function do_postgres_updates() { array("oldimage", "oi_minor_mime", "TEXT NOT NULL DEFAULT 'unknown'"), array("oldimage", "oi_sha1", "TEXT NOT NULL DEFAULT ''"), array("page_restrictions", "pr_id", "INTEGER NOT NULL UNIQUE DEFAULT nextval('pr_id_val')"), + array("profiling", "pf_memory", "NUMERIC(18,10) NOT NULL DEFAULT 0"), array("recentchanges", "rc_deleted", "SMALLINT NOT NULL DEFAULT 0"), array("recentchanges", "rc_log_action", "TEXT"), array("recentchanges", "rc_log_type", "TEXT"), -- 2.20.1