| От | Robert B. Easter |
|---|---|
| Тема | Re: problems with copy command |
| Дата | |
| Msg-id | 00050911395203.20915@comptechnews обсуждение исходный текст |
| Ответ на | problems with copy command ("Paolo Zampieri" <pzampier@it.ip-plus.net>) |
| Список | pgsql-general |
On Tue, 09 May 2000, Paolo Zampieri wrote: > PostgresSQL query failed: ERROR: You must have Postgres superuser privilege > to do a COPY directly to or from a file. Anyone can COPY to stdout or from > stdin. Psql's \copy command also works for anyone. > > I can't use \copy from php because there is no \copy interface in php, only > pg_exec(sql command), so the only way is to use stdin! > Someone has ideas about how to pipe the file and than read the pipe from the > copy sql command? Just read the file in row at a time and insert them in a loop? The opposite to copy it out. I think you'll have to do it this way. -- Robert B. Easter reaster@comptechnews.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера