Avoid double lookup in pgstat_fetch_stat_tabentry() - Mailing list pgsql-hackers

From Drouvot, Bertrand
Subject Avoid double lookup in pgstat_fetch_stat_tabentry()
Date
Msg-id 8c1851a2-a98e-e1bc-7729-37b0b95f66ec@gmail.com
Whole thread Raw
Responses Re: Avoid double lookup in pgstat_fetch_stat_tabentry()
List pgsql-hackers
Hi hackers,

Please find attached a patch proposal to avoid 2 calls to 
pgstat_fetch_stat_tabentry_ext() in pgstat_fetch_stat_tabentry() in case 
the relation is not a shared one and no statistics are found.

Thanks Andres for the suggestion done in [1].

[1]: 
https://www.postgresql.org/message-id/20221116201202.3k74ajawyom2c3eq%40awork3.anarazel.de

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
Attachment

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Perform streaming logical transactions by background workers and parallel apply
Next
From: Amit Kapila
Date:
Subject: Re: Perform streaming logical transactions by background workers and parallel apply