On Mon, Feb 3, 2020 at 5:33 PM Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com> wrote:
> Thanks for explaining that! But heap_beginscan_internal() was really
> called in TidScan case?
Oh, you are right.
Tid Scan started calling table_beginscan from v12 (commit 147e3722f7).
So previously(-v11), Tid Scan might never calls heap_beginscan_internal().
Therefore, from v12, Tid scan not only increases the value of
seq_scan, but also acquires a predicate lock.
Best regards,
--
Tatsuhito Kasahara
kasahara.tatsuhito _at_ gmail.com