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 ;