From fab259e01edd8206e4fafc083bf20b02d77cedc1 Mon Sep 17 00:00:00 2001 From: Anil Thanki Date: Mon, 9 Sep 2024 14:17:22 +0100 Subject: [PATCH] Create 05-02-post_processing.sql.template --- postgres_routines/05-02-post_processing.sql.template | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 postgres_routines/05-02-post_processing.sql.template diff --git a/postgres_routines/05-02-post_processing.sql.template b/postgres_routines/05-02-post_processing.sql.template new file mode 100644 index 0000000..580ad92 --- /dev/null +++ b/postgres_routines/05-02-post_processing.sql.template @@ -0,0 +1,9 @@ +/* + This script performs a group of post-load tasks: + - re-enable autovacuum (mandatory) + - add a check constraint on the partition value (mandatory) +*/ + +alter table scxa_analytics_ SET (autovacuum_enabled = true, toast.autovacuum_enabled = true); +alter table scxa_analytics_ add constraint check_e_ebi_ check (experiment_accession=''); +RESET maintenance_work_mem ;