Ian Harding <harding.ian@xxxxxxxxx> 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 ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org