| От | Justin Pryzby |
|---|---|
| Тема | Re: Log number of tuples returned |
| Дата | |
| Msg-id | 20210429150825.GK27406@telsasoft.com обсуждение |
| Ответ на | Log number of tuples returned (Edson Richter <edsonrichter@hotmail.com>) |
| Ответы |
RES: Log number of tuples returned
|
| Список | pgsql-performance |
On Thu, Apr 29, 2021 at 03:01:29PM +0000, Edson Richter wrote:
> Which postgresql logging parameters should I activate to log the “number of tuples returned” for a query?
> I would like to debug some dynamicly generated queries in the system that are returning a absurd number of tuples (>
2,6miof records).
You can load the auto_explain extension and set:
auto_explain.log_analyze
And then the "rows" are logged:
Result (cost=0.00..0.01 rows=1 width=4) (actual time=0.002..0.004 rows=1 loops=1)
https://www.postgresql.org/docs/current/auto-explain.html
--
Justin
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера