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
Post a Comment