From 061bf98fb8f468b9a8c9fb617bb30136db1cc812 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Sun, 20 Nov 2022 10:53:31 -0800 Subject: [PATCH] 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