Skip to content

Commit a593183

Browse files
committed
Update comment in relcache.c.
Commit 665d1fa introduced rd_pkindex, and made RelationGetIndexList responsible for updating it, but didn't bother to fix RelationGetIndexList's header comment to say so.
1 parent afcb0c9 commit a593183

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/backend/utils/cache/relcache.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4327,9 +4327,10 @@ RelationGetFKeyList(Relation relation)
43274327
* it is the pg_class OID of a unique index on OID when the relation has one,
43284328
* and InvalidOid if there is no such index.
43294329
*
4330-
* In exactly the same way, we update rd_replidindex, which is the pg_class
4331-
* OID of an index to be used as the relation's replication identity index,
4332-
* or InvalidOid if there is no such index.
4330+
* In exactly the same way, we update rd_pkindex, which is the OID of the
4331+
* relation's primary key index if any, else InvalidOid; and rd_replidindex,
4332+
* which is the pg_class OID of an index to be used as the relation's
4333+
* replication identity index, or InvalidOid if there is no such index.
43334334
*/
43344335
List *
43354336
RelationGetIndexList(Relation relation)
@@ -4797,7 +4798,7 @@ RelationGetIndexAttrBitmap(Relation relation, IndexAttrBitmapKind attrKind)
47974798
return NULL;
47984799

47994800
/*
4800-
* Copy the rd_pkindex and rd_replidindex value computed by
4801+
* Copy the rd_pkindex and rd_replidindex values computed by
48014802
* RelationGetIndexList before proceeding. This is needed because a
48024803
* relcache flush could occur inside index_open below, resetting the
48034804
* fields managed by RelationGetIndexList. (The values we're computing

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy