From: | hubert depesz lubaczewski <depesz(at)depesz(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | feature idea |
Date: | 2008-10-06 18:13:07 |
Message-ID: | 20081006181307.GA3461@depesz.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007
From | Date | Subject | |
---|---|---|---|
Next Message | Steve Crawford | 2008-10-06 18:45:44 | Re: feature idea |
Previous Message | johnf | 2008-10-06 17:42:39 | Re: on windows 8.3 many processes - is it normal? |