GP - Create a view to check for AO table bloat

 fn_exists=$(psql -d <dbname> -At -c "select case when (exists( select * from pg_proc where proname = '__gp_aovisimap_compaction_info')) then 't' else 'f' end")

if [[ $fn_exists == 'f' ]]; then 
   psql -d  -f $GPHOME/share/postgresql/compaction_info.sql 
fi

Comments

Popular posts from this blog

How to set Optimizer at database level in greenplum

Changing the gpmon Password

IPMI Tool | IPMI Cheatsheet