doc: correct reference to pg_relation in comment
authorBruce Momjian <[email protected]>
Tue, 26 Sep 2023 21:07:14 +0000 (17:07 -0400)
committerBruce Momjian <[email protected]>
Tue, 26 Sep 2023 21:07:14 +0000 (17:07 -0400)
Reported-by: Dagfinn Ilmari Mannsåker
Discussion: https://postgr.es/m/[email protected]

Backpatch-through: master

src/backend/storage/large_object/inv_api.c

index 84e543e731091c5b964d154baeb23ad503e7a5e5..cc9c335a92d864c84593c4380383f776cb8da2b3 100644 (file)
 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;