pgsql: Optimize RelationFindReplTupleSeq() for CLOBBER_CACHE_ALWAYS.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Optimize RelationFindReplTupleSeq() for CLOBBER_CACHE_ALWAYS.
Date: 2020-04-11 17:35:41
Message-ID: E1jNK2f-0000Vy-GF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Optimize RelationFindReplTupleSeq() for CLOBBER_CACHE_ALWAYS.

Specifically, remember lookup_type_cache() results instead of retrieving
them once per comparison. Under CLOBBER_CACHE_ALWAYS, this reduced
src/test/subscription/t/001_rep_changes.pl elapsed time by an order of
magnitude, which reduced check-world elapsed time by 9%.

Discussion: https://postgr.es/m/20200406085420.GC162712@rfd.leadboat.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/328c70997bc3518a50bd9a8ff33de349a7223413

Modified Files
--------------
src/backend/executor/execReplication.c | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-04-11 18:47:34 Re: pgsql: Support FETCH FIRST WITH TIES
Previous Message Tom Lane 2020-04-11 16:39:33 pgsql: Clear dangling pointer to avoid bogus EXPLAIN printout in a corn