Re: Is there any tool which will help me run and explain analyze about 150 queries?
В списке pgsql-performance по дате отправления:
| От | Jerry Sievers |
|---|---|
| Тема | Re: Is there any tool which will help me run and explain analyze about 150 queries? |
| Дата | |
| Msg-id | m04jprx9yz.fsf@comcast.net обсуждение исходный текст |
| Ответ на | Is there any tool which will help me run and explain analyze about 150 queries? (kunwar singh <krishsingh.111@gmail.com>) |
| Ответы |
Re: Is there any tool which will help me run and explain analyze about 150 queries?
|
| Список | pgsql-performance |
kunwar singh <krishsingh.111@gmail.com> writes:
> Hi Listers,
> Anyone here use such a tool for Postgres? Any recommendations?
>
> Say I have 150 queries in Postgres 11 and I want to upgrade to Postgres 15. I want to run explain analyze for 150 in
bothversions for comparative
> analysis.
>
> I am looking for the easiest way to do it with a tool :)
I'd use a tool like bash for this which is very affordable :-)
Just load your queries into individual files in some directory with a
.sql suffix...
for file in $some-directory/*.sql; do
psql <<EOF >$file.explain-output 2>&1
explain analyze
$(<$file)
EOF
done
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера