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

Commitac0db34

Browse files
Remove PF_USED_FOR_ASSERTS_ONLY from variables in general use
fsstate in process_pending_requests (in postgres_fdw.c) was added in8998e3c as an assertion-only variable,1ec7fca stated usingthe variable outside of assertions.rd_index in get_index_column_opclass (in lsyscache.c) was introducedin2a63683, and then promptly used in the fix commit7e04160shortly thereafter.This removes the PG_USED_FOR_ASSERTS_ONLY variable decoration fromthe above mentioned variables.Reviewed-by: Greg Nancarrow <gregn4422@gmail.com>Discussion:https://postgr.es/m/F959106C-0F21-43A5-B2AE-D007D51ACBEE@yesql.se
1 parentc113d8a commitac0db34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎contrib/postgres_fdw/postgres_fdw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7058,7 +7058,7 @@ void
70587058
process_pending_request(AsyncRequest*areq)
70597059
{
70607060
ForeignScanState*node= (ForeignScanState*)areq->requestee;
7061-
PgFdwScanState*fsstatePG_USED_FOR_ASSERTS_ONLY= (PgFdwScanState*)node->fdw_state;
7061+
PgFdwScanState*fsstate= (PgFdwScanState*)node->fdw_state;
70627062

70637063
/* The request would have been pending for a callback */
70647064
Assert(areq->callback_pending);

‎src/backend/utils/cache/lsyscache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3462,7 +3462,7 @@ Oid
34623462
get_index_column_opclass(Oidindex_oid,intattno)
34633463
{
34643464
HeapTupletuple;
3465-
Form_pg_indexrd_indexPG_USED_FOR_ASSERTS_ONLY;
3465+
Form_pg_indexrd_index;
34663466
Datumdatum;
34673467
boolisnull;
34683468
oidvector*indclass;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp