Re: About "ERROR: must be *superuser* to COPY to or from a file"
В списке pgsql-general по дате отправления:
| От | Greg Stark |
|---|---|
| Тема | Re: About "ERROR: must be *superuser* to COPY to or from a file" |
| Дата | |
| Msg-id | 87y86o8id7.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответ на | Re: About "ERROR: must be *superuser* to COPY to or from a file" (Douglas McNaught <doug@mcnaught.org>) |
| Ответы |
Re: About "ERROR: must be *superuser* to COPY to or from a file"
Re: About "ERROR: must be *superuser* to COPY to or from a file" |
| Список | pgsql-general |
Douglas McNaught <doug@mcnaught.org> writes: > You can use \copy in 'psql' on the client side, but you have to be a > superuser to do COPY on the server side, for security reasons. I wonder if there's any way to relax this constraint. If you're connected via a unix domain socket we can know the UID of the client end. I don't see reproducing the entire unix semantics but if file is owned by the same uid as the user connecting it seems like it ought to be safe. -- greg
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера