diff options
author | Amit Kapila <akapila@postgresql.org> | 2020-03-31 09:34:49 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2020-03-31 09:34:49 +0530 |
commit | ef75140fe756e6460524b067e063beac109853ec (patch) | |
tree | 9e152c90475b506bd35d7b0fa69872b1cdd0fccf /src/backend/utils/adt/jsonfuncs.c | |
parent | f01157e2ac8ac4dff8ba159c36edf2fdb7d6704e (diff) | |
download | postgresql-ef75140fe756e6460524b067e063beac109853ec.tar.gz postgresql-ef75140fe756e6460524b067e063beac109853ec.zip |
Avoid calls to RelationGetRelationName() and RelationGetNamespace() in
vacuum code.
After commit b61d161c14, during vacuum, we cache the information of
relation name and relation namespace in local structure LVRelStats so that
we can use it in an error callback function. We can use the cached
information to avoid the calls to RelationGetRelationName(),
RelationGetNamespace() and get_namespace_name(). This is mainly for the
consistent in vacuum code path but it will avoid the extra syscache lookup
we do in get_namespace_name().
Author: Justin Pryzby
Reviewed-by: Amit Kapila
Discussion: https://www.postgresql.org/message-id/20191120210600.GC30362@telsasoft.com
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions