proposal - queryid can be used as filter for auto_explain

20 views
Skip to first unread message

Pavel Stehule

unread,
Apr 12, 2026, 11:31:55 PM (5 days ago) Apr 12
to PostgreSQL-cz
Hi

I have to investigate strange behaviour of some specific query. One possibility is non stability of plan. This is bigger server with bigger load, and I afraid little bit to use auto_explain for all queries.

Currently auto_explain doesn't support it, but can be maybe practical if we can specify list of queryid as filter of auto_explain.

What do you think about this idea?

Regards

Pavel

Pavel Stehule

unread,
Apr 13, 2026, 12:45:06 AM (5 days ago) Apr 13
to PostgreSQL-cz
sorry - spatny mailing list

Pavel

po 13. 4. 2026 v 5:31 odesílatel Pavel Stehule <pavel....@gmail.com> napsal:

David Turoň

unread,
Apr 14, 2026, 2:04:28 AM (4 days ago) Apr 14
to postgr...@googlegroups.com
Vim, ze spatny mailing list, nepomohlo by ti:

auto_explain.sample_rate

dat na nejakou nizkou hodnotu - vim, ze to neni to co potrebujes, ale treba by se ti povedlo zachytit ten plan za cenu nizke rezie ...

David


po 13. 4. 2026 v 6:45 odesílatel Pavel Stehule <pavel....@gmail.com> napsal:
--
Tuto zprávu jste obdrželi, protože jste přihlášeni k odběru skupiny „PostgreSQL-cz“ ve Skupinách Google.
Chcete-li zrušit odběr skupiny a přestat dostávat e‑maily ze skupiny, zašlete e-mail na adresu postgresql-c...@googlegroups.com.
Tuto diskuzi najdete na adrese https://groups.google.com/d/msgid/postgresql-cz/CAFj8pRDLv%3DOJ3cWTnqsgRUbqvnvZf7hKE1YtWjfKxvjzgoqh0g%40mail.gmail.com.

Pavel Stehule

unread,
Apr 14, 2026, 2:23:32 AM (4 days ago) Apr 14
to postgr...@googlegroups.com


út 14. 4. 2026 v 8:04 odesílatel David Turoň <turon...@gmail.com> napsal:
Vim, ze spatny mailing list, nepomohlo by ti:

auto_explain.sample_rate

dat na nejakou nizkou hodnotu - vim, ze to neni to co potrebujes, ale treba by se ti povedlo zachytit ten plan za cenu nizke rezie ...

O samplingu vim, a asi by to byla moznost. Mne ale zajima jeden konkretni dotaz, ktery je navic velice rychly az na ty pripady, kdy neni. Ale i tehdy je porad docela rychly, takze bych musel nastavit nizko prah. A tech dotazu i se samplingem bude miliony denne. Ono by to asi proslo, ale neni to hezke, a zatim nejsem v nouzi, abych do toho sel. Nicmene, rikal jsem si, ze tohle je presne ten pripad, kdyby se queryid hodilo. V podstate se uvazuje o jeste o planid (nevim ted, jak to je s integraci), ale jsou na to extenze. 

Pavel

 

David


po 13. 4. 2026 v 6:45 odesílatel Pavel Stehule <pavel....@gmail.com> napsal:
sorry - spatny mailing list

Pavel

po 13. 4. 2026 v 5:31 odesílatel Pavel Stehule <pavel....@gmail.com> napsal:
Hi

I have to investigate strange behaviour of some specific query. One possibility is non stability of plan. This is bigger server with bigger load, and I afraid little bit to use auto_explain for all queries.

Currently auto_explain doesn't support it, but can be maybe practical if we can specify list of queryid as filter of auto_explain.

What do you think about this idea?

Regards

Pavel

--
Tuto zprávu jste obdrželi, protože jste přihlášeni k odběru skupiny „PostgreSQL-cz“ ve Skupinách Google.
Chcete-li zrušit odběr skupiny a přestat dostávat e‑maily ze skupiny, zašlete e-mail na adresu postgresql-c...@googlegroups.com.
Tuto diskuzi najdete na adrese https://groups.google.com/d/msgid/postgresql-cz/CAFj8pRDLv%3DOJ3cWTnqsgRUbqvnvZf7hKE1YtWjfKxvjzgoqh0g%40mail.gmail.com.

--
Tuto zprávu jste obdrželi, protože jste přihlášeni k odběru skupiny „PostgreSQL-cz“ ve Skupinách Google.
Chcete-li zrušit odběr skupiny a přestat dostávat e‑maily ze skupiny, zašlete e-mail na adresu postgresql-c...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages