Re: Possible TODO item: copy to/from pipe

Поиск
Список
Период
Сортировка
Искать
От
Greg Stark
Тема
Re: Possible TODO item: copy to/from pipe
Дата
Msg-id
87hd30bny2.fsf@stark.xeocode.com
Ответ на
Список
Дерево обсуждения
Re: Possible TODO item: copy to/from pipe "Dave Page" <dpage@vale-housing.co.uk>
Re: Possible TODO item: copy to/from pipe Andreas Pflug <pgadmin@pse-consulting.de>
Andreas Pflug  writes:

> Bruce Momjian wrote:
> >
> > For use case, consider this:
> >
> >  	COPY mytable TO '| rsh x@y.com > test ';
> >
> > so you can COPY to another server directly.
> >
> Why not rsh psql -c "\copy foobar to test" ?

Who knows? The sysadmin could have any reason to prefer one to the other. 

One that comes to mind is that he or she may want to automate this and may be
happier granting password-free access to a filesystem server that just holds
encrypted backups than to the live production database.

-- 
greg


В списке pgsql-hackers по дате отправления
От: Greg Stark
Дата:
От: Greg Stark
Дата:
FAQ