diff options
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
-rw-r--r-- | tools/perf/scripts/python/export-to-postgresql.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/scripts/python/export-to-postgresql.py b/tools/perf/scripts/python/export-to-postgresql.py index 01f37877f5bb..13205e4e5b3b 100644 --- a/tools/perf/scripts/python/export-to-postgresql.py +++ b/tools/perf/scripts/python/export-to-postgresql.py | |||
@@ -886,6 +886,8 @@ def trace_end(): | |||
886 | 'ADD CONSTRAINT parent_call_pathfk FOREIGN KEY (parent_call_path_id) REFERENCES call_paths (id)') | 886 | 'ADD CONSTRAINT parent_call_pathfk FOREIGN KEY (parent_call_path_id) REFERENCES call_paths (id)') |
887 | do_query(query, 'CREATE INDEX pcpid_idx ON calls (parent_call_path_id)') | 887 | do_query(query, 'CREATE INDEX pcpid_idx ON calls (parent_call_path_id)') |
888 | do_query(query, 'CREATE INDEX pid_idx ON calls (parent_id)') | 888 | do_query(query, 'CREATE INDEX pid_idx ON calls (parent_id)') |
889 | do_query(query, 'ALTER TABLE comms ADD has_calls boolean') | ||
890 | do_query(query, 'UPDATE comms SET has_calls = TRUE WHERE comms.id IN (SELECT DISTINCT comm_id FROM calls)') | ||
889 | do_query(query, 'ALTER TABLE ptwrite ' | 891 | do_query(query, 'ALTER TABLE ptwrite ' |
890 | 'ADD CONSTRAINT idfk FOREIGN KEY (id) REFERENCES samples (id)') | 892 | 'ADD CONSTRAINT idfk FOREIGN KEY (id) REFERENCES samples (id)') |
891 | do_query(query, 'ALTER TABLE cbr ' | 893 | do_query(query, 'ALTER TABLE cbr ' |