On 7 October 2016 at 22:59, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I think you want "pstdin" not "stdin". See the description of \copy
> in the psql man page.
Thanks. I also found this article that explained the difference.
http://illuminatedcomputing.com/posts/2015/02/postgres_copy_stdin_vs_pstdin/
Binand