mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
pgstat: normalize function naming.
Most of pgstat uses pgstat_<verb>_<subject>() or just <verb>_<subject>(). But not all (some introduced fairly recently by me). Rename ones that aren't intentionally following a different scheme (e.g. AtEOXact_*).
This commit is contained in:
@@ -73,7 +73,7 @@ relation_open(Oid relationId, LOCKMODE lockmode)
|
||||
if (RelationUsesLocalBuffers(r))
|
||||
MyXactFlags |= XACT_FLAGS_ACCESSEDTEMPNAMESPACE;
|
||||
|
||||
pgstat_relation_init(r);
|
||||
pgstat_init_relation(r);
|
||||
|
||||
return r;
|
||||
}
|
||||
@@ -123,7 +123,7 @@ try_relation_open(Oid relationId, LOCKMODE lockmode)
|
||||
if (RelationUsesLocalBuffers(r))
|
||||
MyXactFlags |= XACT_FLAGS_ACCESSEDTEMPNAMESPACE;
|
||||
|
||||
pgstat_relation_init(r);
|
||||
pgstat_init_relation(r);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user