Re: Conflict handling for COPY FROM

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Conflict handling for COPY FROM
Дата
Msg-id 92E58BB6-E05A-4F59-8C65-AF0392C253FF@anarazel.de
обсуждение исходный текст
Ответ на Re: Conflict handling for COPY FROM  (Surafel Temesgen <surafel3000@gmail.com>)
Ответы Re: Conflict handling for COPY FROM  (Surafel Temesgen <surafel3000@gmail.com>)
Список pgsql-hackers

On February 19, 2019 3:05:37 AM PST, Surafel Temesgen <surafel3000@gmail.com> wrote:
>On Sat, Feb 16, 2019 at 8:24 AM Andres Freund <andres@anarazel.de>
>wrote:
>
>> Hi,
>>
>> On 2018-08-23 17:11:04 +0300, Surafel Temesgen wrote:
>> > COPY ... WITH ON CONFLICT LOG maximum_error, LOG FILE NAME '…';
>>
>> This doesn't seem to address Robert's point that a log file requires
>to
>> be super user only, which seems to restrict the feature more than
>> necessary?
>>
>> - Andres
>>
>
>
>I think having write permission on specified directory is enough.
>we use out put file name in COPY TO similarly.

Err, what? Again, that requires super user permissions (in contrast to copy from/to stdin/out). Backends run as the
userpostgres runs under - it will always have write permissions to at least the entire data directory.  I think not
addressingthis just about guarantees the feature will be rejected. 

Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: shared-memory based stats collector
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [Bug Fix] ECPG: could not use set xxx to default statement