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  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список pgsql-hackers
Andreas Pflug <pgadmin@pse-consulting.de> 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
Дата:
Сообщение: Re: More thoughts about planner's cost estimates
Следующее
От: Greg Stark
Дата:
Сообщение: Re: 'CVS-Unknown' buildfarm failures?