diff options
author | Andres Freund <andres@anarazel.de> | 2022-11-20 10:53:31 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-11-20 10:56:32 -0800 |
commit | 061bf98fb8f468b9a8c9fb617bb30136db1cc812 (patch) | |
tree | baa03237370992bdb8f5fcf15027a63f6697ba6f /src/backend/parser/parse_expr.c | |
parent | b62303794efd97f2afb55f1e1b82fffae2cf8a2d (diff) | |
download | postgresql-061bf98fb8f468b9a8c9fb617bb30136db1cc812.tar.gz postgresql-061bf98fb8f468b9a8c9fb617bb30136db1cc812.zip |
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.pg@gmail.com>
Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de
Discussion: https://postgr.es/m/8c1851a2-a98e-e1bc-7729-37b0b95f66ec@gmail.com
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions