feature idea

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема feature idea
Дата
Msg-id 20081006181307.GA3461@depesz.com
обсуждение исходный текст
Ответы Re: feature idea  (Steve Crawford <scrawford@pinpointresearch.com>)
Re: feature idea  (Klint Gore <kgore4@une.edu.au>)
Список pgsql-general
hi

would it be possible to allow (in psql) syntax like:
\do = | grep ...
or even:
select * from table; | zcat - > /tmp/table.data.gz

i.e. - adding | ... at the end of command to send its output via pipe to
another program?

usecase that i had today was pretty simple - check list of operators
that are defined using "password" datatype.

generally - i could:
psql -c '\do' | grep -i password

but simple way of doing it from shell would be so much nicer.

we gave this feature already with \do - but i think it would be cool to
be able to do it on statement level - in more natural (to unix veterans)
way.

what do you think?

best regards,

depesz


--
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

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

Предыдущее
От: johnf
Дата:
Сообщение: Re: on windows 8.3 many processes - is it normal?
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: feature idea