Forum OpenACS Q&A: Re: Running the psql COPY command from db_dml

Collapse
Posted by Bruno Mattarollo on

Use the following in your SQL file:

\copy TABLE_NAME from 'FILE' using delimiters (etc etc)
note the \ and the lack of ; at the end of the line.

Hope this helps