| От | Bruce Momjian |
|---|---|
| Тема | Re: BUG #10052: COPY (...) TO 'file' doesn't create file |
| Дата | |
| Msg-id | 20140416182851.GH7443@momjian.us обсуждение исходный текст |
| Ответ на | BUG #10052: COPY (...) TO 'file' doesn't create file (postgresql.org@ch.pkts.ca) |
| Список | pgsql-bugs |
On Wed, Apr 16, 2014 at 05:54:36PM +0000, postgresql.org@ch.pkts.ca wrote: > The following bug has been logged on the website: > > Bug reference: 10052 > Logged by: PFudd > Email address: postgresql.org@ch.pkts.ca > PostgreSQL version: 9.2.8 > Operating system: CentOS 6.5 > Description: > > In psql, this command works: > # copy (select * from history) to STDOUT; > It prints 957 lines to stdout. > > However, if I do: > # copy (select * from history) to '/tmp/foo.txt'; > it prints > COPY 957 > but doesn't create the file /tmp/foo.txt. Uh, you realize that is a file on the server, not on the client. You might want to try psql's \copy. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. +
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера