From: Greg Sabino Mullane Date: Sun, 30 Jul 2006 23:36:14 +0000 (+0000) Subject: Add profiling table. X-Git-Tag: 1.31.0-rc.0~56118 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=7703f8f90b632fc89357c6f96b7d16e557a0b4e5;p=lhc%2Fweb%2Fwiklou.git Add profiling table. --- diff --git a/maintenance/postgres/tables.sql b/maintenance/postgres/tables.sql index dcc0273ce5..808fcf60ff 100644 --- a/maintenance/postgres/tables.sql +++ b/maintenance/postgres/tables.sql @@ -441,6 +441,16 @@ $mw$ SELECT 1; $mw$; +-- This table is not used unless profiling is turned on +CREATE TABLE profiling ( + pf_count INTEGER NOT NULL DEFAULT 0, + pf_time NUMERIC(18,10) NOT NULL DEFAULT 0, + pf_name TEXT NOT NULL, + pf_server TEXT NOT NULL +); +CREATE UNIQUE INDEX pf_name_server ON profiling (pf_name, pf_server); + + CREATE TABLE mediawiki_version ( type TEXT NOT NULL, mw_version TEXT NOT NULL,