doc: correct reference to pg_relation in comment

Reported-by: Dagfinn Ilmari Mannsåker

Discussion: https://postgr.es/m/87sf9apnr0.fsf@wibble.ilmari.org

Backpatch-through: master
This commit is contained in:
Bruce Momjian 2023-09-26 17:07:14 -04:00
parent b0ae29512c
commit 441bbd2988
1 changed files with 5 additions and 5 deletions

View File

@ -58,11 +58,11 @@
bool lo_compat_privileges;
/*
* All accesses to pg_largeobject and its index make use of a single Relation
* reference, so that we only need to open pg_relation once per transaction.
* To avoid problems when the first such reference occurs inside a
* subtransaction, we execute a slightly klugy maneuver to assign ownership of
* the Relation reference to TopTransactionResourceOwner.
* All accesses to pg_largeobject and its index make use of a single
* Relation reference. To guarantee that the relcache entry remains
* in the cache, on the first reference inside a subtransaction, we
* execute a slightly klugy maneuver to assign ownership of the
* Relation reference to TopTransactionResourceOwner.
*/
static Relation lo_heap_r = NULL;
static Relation lo_index_r = NULL;