From: Greg Sabino Mullane Date: Wed, 30 Apr 2008 14:20:36 +0000 (+0000) Subject: Add pf_memory to profiling table for Postgres X-Git-Tag: 1.31.0-rc.0~47990 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=6ff3f5942967d7b5771797bcee27beff0ff64358;p=lhc%2Fweb%2Fwiklou.git Add pf_memory to profiling table for Postgres --- 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"),