This Gist implements the migration-eval Python script in PSQL, allowing the script to run without the need for Python.
Steps:
- Copy the script below to a
evaluate.sql
file. - To run:
psql -t -q -d "<URI>" -f evaluate.sql > report.txt
Note:
- The script should complete running within 5 minutes. If it takes longer (due to a lock that can occur when the production load is high), you can decrease the value of
\set wait_duration 60
from60
to30
. If decreasing the value does not help, you can share the output ofreport.txt
as is.