Add query time tracking to IO Events.

This commit is contained in:
Patrick Fic
2021-04-22 10:16:49 -07:00
parent cdf99a16fe
commit 08faff4d8e
11 changed files with 112 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: DROP TABLE "public"."ioevents";
type: run_sql

View File

@@ -0,0 +1,11 @@
- args:
cascade: false
read_only: false
sql: CREATE TABLE "public"."ioevents"("id" bigserial NOT NULL, "created_at" timestamptz
NOT NULL DEFAULT now(), "operationname" text NOT NULL, "time" numeric, PRIMARY
KEY ("id") );
type: run_sql
- args:
name: ioevents
schema: public
type: add_existing_table_or_view

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."ioevents" DROP COLUMN "variables";
type: run_sql

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."ioevents" ADD COLUMN "variables" jsonb NULL;
type: run_sql

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."ioevents" DROP COLUMN "dbevent";
type: run_sql

View File

@@ -0,0 +1,6 @@
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."ioevents" ADD COLUMN "dbevent" Boolean NOT NULL DEFAULT
false;
type: run_sql

View File

@@ -1814,6 +1814,9 @@ tables:
- active:
_eq: true
allow_aggregations: true
- table:
schema: public
name: ioevents
- table:
schema: public
name: job_conversations