psql - better support pipe line
От | Pavel Stehule |
---|---|
Тема | psql - better support pipe line |
Дата | |
Msg-id | CAFj8pRBdu3uTC6wJefy5f_qNzn2Dr1ReGwc9Ey_wzVyggWo+rQ@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: psql - better support pipe line
|
Список | pgsql-hackers |
Hi
I found so a set "psql" and "xargs" is pretty strong. But I miss a psql option for simple returning current database and continuing in pipeline.where relname = 'pg_attribute' and n_dead_tup > 100000" |
xargs -P 3 -I % sh -c "psql % -q -c 'analyze pg_attribute'; echo %"
--echo-db requires -q option
В списке pgsql-hackers по дате отправления: