Former-commit-id:3386330894
[formerly 36f4554f8f80812a5ffa0d243fe1a4ad6e330192] Former-commit-id:adb779323d
11 lines
361 B
Bash
11 lines
361 B
Bash
#!/bin/bash
|
|
|
|
|
|
# 1917 Removes old aggregate format/layout
|
|
echo "Removing old stat aggregates"
|
|
rm -rf /awips2/edex/data/utility/common_static/site/*/stats/aggregates
|
|
|
|
# run full vacuum on stats table, code keeps table more stable
|
|
PSQL="/awips2/psql/bin/psql"
|
|
echo "Running full vacuum on stats"
|
|
${PSQL} -U awips -d metadata -c "VACUUM FULL ANALYZE events.stats;"
|