As I know.
You can do something in the shell by running your SQL through a simple script and then in PostgreSQL. For example. with Perl:
cat regionupdates.sql | perl -e '$i = 1; while(<STDIN>) { $i++; print $_; if ($i % 50 == 0) { sleep 10; } }' | psql -d MYDB -L output.txt
By the way: I see that you asked a very similar question before. It would be nice if you agreed to answer the answers you found:
Start ... complete every 50 lines
Jamie love
source share