Thanks for all the help, it works and I've learned some more about COPY, which is treated thinly in Douglas's first edition of "PostgreSQL" (which was my source.) r
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных