I would like to use the psql \"\\copy\" command to pull data from a tab-delimited file into Postgres. I\'m using this command:
\\copy cm_state from \'state.
Use E'\t' to tell postgresql there may be escaped characters in there:
E'\t'
\copy cm_state from 'state.data' with delimiter E'\t' null as ;
you can do this copy cm_state from stdin with (format 'text')
copy cm_state from stdin with (format 'text')