| From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
|---|---|
| To: | Xiaobo Gu <guxiaobo1982(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: question about \encoding option of psql |
| Date: | 2011-12-16 15:42:52 |
| Message-ID: | 201112160742.52681.adrian.klaver@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thursday, December 15, 2011 10:33:03 pm Xiaobo Gu wrote:
> Hi Adrian,
>
> I am on the Windows platform, how should I paste the command line.
I don't use Windows enough to be sure but:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/echo.mspx?mfr=true
So open a command prompt and give it a try. I would test with a non destructive command first:)
For your original request something like:
echo "\your_encoding \\ \copy demo.store to 'd:\store.csv' with csv header"| psql -h 192.168.72.7 -U gpadmin -w -d miner_demo
>
> Regards,
>
> Xiaobo Gu
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mike Blackwell | 2011-12-16 20:22:53 | disable autovacuum per-database? |
| Previous Message | Radosław Smogura | 2011-12-16 15:38:04 | Permission denied on relation |