Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 441bbd2

Browse files
committed
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
1 parent b0ae295 commit 441bbd2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/storage/large_object/inv_api.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858
bool lo_compat_privileges;
5959

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

0 commit comments

Comments
 (0)