Add profiling table.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 30 Jul 2006 23:36:14 +0000 (23:36 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 30 Jul 2006 23:36:14 +0000 (23:36 +0000)
maintenance/postgres/tables.sql

index dcc0273..808fcf6 100644 (file)
@@ -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,