Drop power_events_view before its dependent tables. SQLite does not seem to mind but the fix was needed for PostgreSQL (export-to-postgresql.py script), so do the same fix for the SQLite. It is more logical and keeps the 2 scripts following the same approach.
Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all
Unified · Split
| @@ -608,11 +608,11 @@ def trace_end(): · 607 unmodified lines | |||
| 608 | if is_table_empty("ptwrite"): | 608 | if is_table_empty("ptwrite"): |
| 609 | drop("ptwrite") | 609 | drop("ptwrite") |
| 610 | if is_table_empty("mwait") and is_table_empty("pwre") and is_table_empty("exstop") and is_table_empty("pwrx"): | 610 | if is_table_empty("mwait") and is_table_empty("pwre") and is_table_empty("exstop") and is_table_empty("pwrx"): |
| 611 | do_query(query, 'DROP VIEW power_events_view'); | ||
| 611 | drop("mwait") | 612 | drop("mwait") |
| 612 | drop("pwre") | 613 | drop("pwre") |
| 613 | drop("exstop") | 614 | drop("exstop") |
| 614 | drop("pwrx") | 615 | drop("pwrx") |
| 615 | do_query(query, 'DROP VIEW power_events_view'); | ||
| 616 | if is_table_empty("cbr"): | 616 | if is_table_empty("cbr"): |
| 617 | drop("cbr") | 617 | drop("cbr") |
| 618 | 618 | ||