Re: is JIT available
От
Philip Semanchuk
Тема
Re: is JIT available
Дата
Msg-id
F6E79F4C-15D6-4389-8860-442DA5F308F4@americanefficient.com
Ответ на
Re: is JIT available (Pavel Stehule)
Список
Дерево обсуждения
is JIT available Scott Ribe <scott_ribe@elevated-dev.com>
Re: is JIT available Christoph Moench-Tegeder <cmt@burggraben.net>
Re: is JIT available Scott Ribe <scott_ribe@elevated-dev.com>
Re: is JIT available David Rowley <dgrowleyml@gmail.com>
Re: is JIT available Tom Lane <tgl@sss.pgh.pa.us>
Re: is JIT available Scott Ribe <scott_ribe@elevated-dev.com>
Re: is JIT available David Rowley <dgrowleyml@gmail.com>
Re: is JIT available David Rowley <dgrowleyml@gmail.com>
Re: is JIT available Scott Ribe <scott_ribe@elevated-dev.com>
Re: is JIT available David Rowley <dgrowleyml@gmail.com>
Re: is JIT available Pavel Stehule <pavel.stehule@gmail.com>
Re: is JIT available Scott Ribe <scott_ribe@elevated-dev.com>
Re: is JIT available Pavel Stehule <pavel.stehule@gmail.com>
Re: is JIT available Scott Ribe <scott_ribe@elevated-dev.com>
Re: is JIT available Pavel Stehule <pavel.stehule@gmail.com>
Re: is JIT available Philip Semanchuk <philip@americanefficient.com>
> On Jul 25, 2020, at 8:21 AM, Pavel Stehule wrote: > > > > so 25. 7. 2020 v 14:04 odesílatel Scott Ribe napsal: > > On Jul 24, 2020, at 9:55 PM, Pavel Stehule wrote: > > > > SELECT * FROM pg_config; > > That doesn't tell me whether or not it can actually be used. > > It shows if Postgres was compiled with JIT support. > > When you run EXPLAIN ANALYZE SELECT ... then you can see info about JIT overhead. If you don't see notices about JIT in EXPLAIN, then JIT was not used. I like Pavel’s 'EXPLAIN ANALYZE SELECT’ suggestion a lot. I think setting jit=on and jit_above_cost=1 and then running 'EXPLAIN ANALYZE SELECT’ is a very effective way to see whether jit is available in practice. On installations where jit isn’t available (like on my Mac or on AWS Aurora), you can still set jit=on in a session and Postgres doesn’t complain, but that doesn’t mean it’s actually enabled. Cheers Philip
В списке pgsql-general по дате отправления