Skip to content

Commit

Permalink
merges two queries to one
Browse files Browse the repository at this point in the history
  • Loading branch information
anilthanki committed Oct 8, 2024
1 parent b8e10b0 commit 7f74f4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions postgres_routines/05-02-post_processing.sql.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
- 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>');
alter table scxa_analytics_<EXP-ACCESSION> SET (autovacuum_enabled = true, toast.autovacuum_enabled = true) add constraint check_e_ebi_<EXP-ACCESSION> check (experiment_accession='<EXP-ACC-UC>');
RESET maintenance_work_mem ;

0 comments on commit 7f74f4f

Please sign in to comment.