Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita593183

Browse files
committed
Update comment in relcache.c.
Commit665d1fa introduced rd_pkindex, and made RelationGetIndexListresponsible for updating it, but didn't bother to fixRelationGetIndexList's header comment to say so.
1 parentafcb0c9 commita593183

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(Relationrelation)
@@ -4797,7 +4798,7 @@ RelationGetIndexAttrBitmap(Relation relation, IndexAttrBitmapKind attrKind)
47974798
returnNULL;
47984799

47994800
/*
4800-
* Copy the rd_pkindex and rd_replidindexvalue computed by
4801+
* Copy the rd_pkindex and rd_replidindexvalues 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)

[8]ページ先頭

©2009-2025 Movatter.jp