Re: proposal: psql \setfileref

Поиск
Список
Период
Сортировка
Искать
От
Gilles Darold
Тема
Re: proposal: psql \setfileref
Дата
Msg-id
c763c609-7954-331f-66e5-e28717e7a1b8@dalibo.com
Ответ на
Список
Дерево обсуждения
proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Corey Huinker <corey.huinker@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Ryan Murphy <ryanfmurphy@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Ryan Murphy <ryanfmurphy@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Gilles Darold <gilles@darold.net>
Re: proposal: psql \setfileref Robert Haas <robertmhaas@gmail.com>
Re: proposal: psql \setfileref Gilles Darold <gilles.darold@dalibo.com>
Re: proposal: psql \setfileref Gilles Darold <gilles.darold@dalibo.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Gilles Darold <gilles.darold@dalibo.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Gilles Darold <gilles.darold@dalibo.com>
Re: proposal: psql \setfileref "Daniel Verite" <daniel@manitou-mail.org>
Re: proposal: psql \setfileref Gilles Darold <gilles.darold@dalibo.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Gilles Darold <gilles.darold@dalibo.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Corey Huinker <corey.huinker@gmail.com>
Re: proposal: psql \setfileref "Daniel Verite" <daniel@manitou-mail.org>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Robert Haas <robertmhaas@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Haribabu Kommi <kommi.haribabu@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Corey Huinker <corey.huinker@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Bruce Momjian <bruce@momjian.us>
Re: proposal: psql \setfileref Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: proposal: psql \setfileref Corey Huinker <corey.huinker@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Corey Huinker <corey.huinker@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: psql \setfileref Corey Huinker <corey.huinker@gmail.com>
Re: proposal: psql \setfileref Pavel Stehule <pavel.stehule@gmail.com>
Le 11/10/2016 à 07:53, Pavel Stehule a écrit :


2016-10-10 19:50 GMT+02:00 Pavel Stehule <pavel.stehule@gmail.com>:


2016-10-10 15:17 GMT+02:00 Gilles Darold <gilles.darold@dalibo.com>:
Le 10/10/2016 à 14:38, Daniel Verite a écrit :
>       Gilles Darold wrote:
>
>>    postgres=# \setfileref b /dev/random
>>    postgres=# insert into test (:b);
>>
>> Process need to be killed using SIGTERM.
> This can be fixed by setting sigint_interrupt_enabled to true
> before operating on the file. Then ctrl-C would be able to cancel
> the command.

If we do not prevent the user to be able to load special files that
would be useful yes.

I don't think so special files has some sense, just I had not time fix this issue. I will do it early - I hope.

fresh patch - only regular files are allowed

Regards

Pavel


Hi,

The patch works as expected, the last two remaining issues have been fixed. I've changed the status to "Ready for committers".

Thanks Pavel.

-- 
Gilles Darold
Consultant PostgreSQL
http://dalibo.com - http://dalibo.org
В списке pgsql-hackers по дате отправления
От: Masahiko Sawada
Дата:
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: psql \setfileref
FAQ