pgsql: pgstat: replace double lookup with IsSharedRelation()
pgsql: pgstat: replace double lookup with IsSharedRelation()
От:
Andres Freund <andres@anarazel.de>
Дата:
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