Add pf_memory to profiling table for Postgres
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 30 Apr 2008 14:20:36 +0000 (14:20 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 30 Apr 2008 14:20:36 +0000 (14:20 +0000)
maintenance/postgres/tables.sql
maintenance/updaters.inc

index faf1cd1..40a948e 100644 (file)
@@ -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
 );
index 8eeb212..d284663 100644 (file)
@@ -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"),