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

For the record.
After some testing, the way that works at the end is:

exec -- ${psqlpath}psql -h $host -p $port -U $user $dbname -c "\\copy ml_import_records ( record ) from $temp_filename"