I am running this command on Webfaction:
ionice -c2 -n6 pg_dump --blobs -U mhjohnson_flavma -f dump.sql
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: canceling statement due to statement timeout
Any ideas on how to change the timeout?
Your server probably has statement-timeouts configured in one way or another. (cf. here)
As a quick solution, you could use PGOPTIONS="-c statement_timeout=0" pg_dump [...]
to temporarily overwrite this setting for the dumping process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With