summaryrefslogtreecommitdiff
path: root/maintenance/postgres/archives/patch-profiling.sql
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/postgres/archives/patch-profiling.sql')
-rw-r--r--maintenance/postgres/archives/patch-profiling.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/maintenance/postgres/archives/patch-profiling.sql b/maintenance/postgres/archives/patch-profiling.sql
new file mode 100644
index 00000000..1c4dce4e
--- /dev/null
+++ b/maintenance/postgres/archives/patch-profiling.sql
@@ -0,0 +1,7 @@
+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 NULL
+);
+CREATE UNIQUE INDEX pf_name_server ON profiling (pf_name, pf_server);