feature idea - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject feature idea
Date
Msg-id 20081006181307.GA3461@depesz.com
Whole thread Raw
Responses Re: feature idea  (Steve Crawford <scrawford@pinpointresearch.com>)
Re: feature idea  (Klint Gore <kgore4@une.edu.au>)
List 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 by date:

Previous
From: johnf
Date:
Subject: Re: on windows 8.3 many processes - is it normal?
Next
From: Steve Crawford
Date:
Subject: Re: feature idea