Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal
Date: 2022-03-05 02:48:33
Message-ID: 4008273.1646448513@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-pkg-debian

Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com> writes:
> On 3/4/22 17:03, Tom Lane wrote:
>> Mmm ... it might have just been that the planner chose not to use
>> JIT when it thought there were fewer rows involved. Did you check
>> with EXPLAIN that these cut-down cases still used JIT?

> This is interesting and informative answer. How do I check whether JIT
> is used in the explain plan? Can you give me an example?

If EXPLAIN prints some stuff about JIT, then JIT is going to be
used, otherwise not. Here's an example from my (entirely
unsuccessful) attempts to duplicate depesz's problem:

=# explain select p.proname, (SELECT rolname from pg_catalog.pg_roles where oid = p.proowner) from pg_proc p;
QUERY PLAN
----------------------------------------------------------------------------------------------
Seq Scan on pg_proc p (cost=0.00..393587.22 rows=47243 width=128)
SubPlan 1
-> Index Scan using pg_authid_oid_index on pg_authid (cost=0.28..8.30 rows=1 width=64)
Index Cond: (oid = p.proowner)
JIT:
Functions: 8
Options: Inlining false, Optimization false, Expressions true, Deforming true
(7 rows)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Suresh Kumar R 2022-03-05 07:33:10 Re: Couldn't cast to record[]
Previous Message Mladen Gogala 2022-03-05 02:42:53 Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message hubert depesz lubaczewski 2022-03-06 14:04:02 Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal
Previous Message Mladen Gogala 2022-03-05 02:42:53 Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal