Skip to content

Commit

Permalink
Create 05-02-post_processing.sql.template
Browse files Browse the repository at this point in the history
  • Loading branch information
anilthanki authored Sep 9, 2024
1 parent 1fe60ca commit fab259e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions postgres_routines/05-02-post_processing.sql.template
Original file line number Diff line number Diff line change
@@ -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_<EXP-ACCESSION> SET (autovacuum_enabled = true, toast.autovacuum_enabled = true);
alter table scxa_analytics_<EXP-ACCESSION> add constraint check_e_ebi_<EXP-ACCESSION> check (experiment_accession='<EXP-ACC-UC>');
RESET maintenance_work_mem ;

0 comments on commit fab259e

Please sign in to comment.