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

Commit1f06b7f

Browse files
committed
Avoid compiler warning in non-assert builds
After01575ad, expand_single_inheritance_child()'s parentOIDvariable is read only in an Assert, provoking a compiler warning innon-assert builds. Fix that by marking the variable withPG_USED_FOR_ASSERTS_ONLY.Per report and suggestion from David RowleyDiscussion:https://postgr.es/m/CAApHDvpjA_8Wxu4DCTRVAvPxC9atwMe6N%2ByvrcGsgb7mrfdpJA%40mail.gmail.com
1 parent611806c commit1f06b7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/optimizer/util/inherit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,8 @@ expand_single_inheritance_child(PlannerInfo *root, RangeTblEntry *parentrte,
457457
Index*childRTindex_p)
458458
{
459459
Query*parse=root->parse;
460-
OidparentOID=RelationGetRelid(parentrel);
460+
OidparentOIDPG_USED_FOR_ASSERTS_ONLY=
461+
RelationGetRelid(parentrel);
461462
OidchildOID=RelationGetRelid(childrel);
462463
RangeTblEntry*childrte;
463464
IndexchildRTindex;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp