From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: pgstat: replace double lookup with IsSharedRelation() |
Date: | 2022-11-20 19:00:13 |
Message-ID: | E1owpY4-00074a-Mt@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
pgstat: replace double lookup with IsSharedRelation()
As the list of shared relations is fixed, we can just dispatch based
IsSharedRelation(), instead of first trying to look up stats for a non-shared
rel and falling back to shared stats.
Author: "Drouvot, Bertrand" <bertranddrouvot(dot)pg(at)gmail(dot)com>
Reviewed-by: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de
Discussion: https://postgr.es/m/8c1851a2-a98e-e1bc-7729-37b0b95f66ec@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/061bf98fb8f468b9a8c9fb617bb30136db1cc812
Modified Files
--------------
src/backend/utils/activity/pgstat_relation.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2022-11-20 19:57:01 | pgsql: lwlock: Fix quadratic behavior with very long wait lists |
Previous Message | Tom Lane | 2022-11-20 16:30:56 | pgsql: Fix sloppy cleanup of roles in privileges.sql. |