Thanks for all the help, it works and I've learned some more aboutCOPY, which is treated thinly in Douglas's first edition of"PostgreSQL" (which was my source.)
r