From: Andres Freund Date: Sun, 20 Nov 2022 18:53:31 +0000 (-0800) Subject: pgstat: replace double lookup with IsSharedRelation() X-Git-Tag: REL_16_BETA1~1273 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=061bf98fb8f468b9a8c9fb617bb30136db1cc812;p=postgresql.git 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" Reviewed-by: Bharath Rupireddy Reviewed-by: Andres Freund