░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/etc/postgresql-common/pg_upgradecluster.d
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: analyze
#!/bin/sh # # Run ANALYZE on all databases in the upgraded cluster set -eu oldversion="$1" cluster="$2" newversion="$3" phase="$4" case $newversion in 9.2|9.3) analyze="--analyze-only" ;; *) analyze="--analyze-in-stages" ;; esac case $newversion in 9.5|9.6|[1-7]*) [ "${PGJOBS:-}" ] && jobs="--jobs=$PGJOBS" ;; esac case $phase in finish) vacuumdb --cluster "$newversion/$cluster" --all $analyze ${jobs:-} ;; esac exit 0
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 analyze
?
507 B
2024-01-16 14:06
EDIT