Ian Harding <harding(dot)ian(at)gmail(dot)com> writes:
> That being the case, what could be causing my script to slow to a
> crawl when redirected to psql, but run fine from inside psql with -i?
Readline issue maybe? Please try this way
psql -f script.sql
as well as the stdin way; then try both with -n (no readline) added.
Also, what platform is this on, and PG 8.0.whatexactly?
regards, tom lane