Skip to content

Commit ac0db34

Browse files
Remove PF_USED_FOR_ASSERTS_ONLY from variables in general use
fsstate in process_pending_requests (in postgres_fdw.c) was added in 8998e3c as an assertion-only variable, 1ec7fca stated using the variable outside of assertions. rd_index in get_index_column_opclass (in lsyscache.c) was introduced in 2a63683, and then promptly used in the fix commit 7e04160 shortly thereafter. This removes the PG_USED_FOR_ASSERTS_ONLY variable decoration from the above mentioned variables. Reviewed-by: Greg Nancarrow <gregn4422@gmail.com> Discussion: https://postgr.es/m/F959106C-0F21-43A5-B2AE-D007D51ACBEE@yesql.se
1 parent c113d8a commit ac0db34

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 *fsstate PG_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(Oid index_oid, int attno)
34633463
{
34643464
HeapTuple tuple;
3465-
Form_pg_index rd_index PG_USED_FOR_ASSERTS_ONLY;
3465+
Form_pg_index rd_index;
34663466
Datum datum;
34673467
bool isnull;
34683468
oidvector *indclass;

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