Sebastian Kniat wrote:
> Hello,
> is posible to include shell commands, like ping, into query?
> e.x.
> select current_timestamp, "ping IP_adress" into table table_name
You can do it in psql:
test=> \set x '\'' `pwd` '\''
test=> select :x;
?column?
---------------------------
/usr/var/local/users/root
(1 row)
See the psql manual page for more information.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073