From: Robert Haas Date: Thu, 3 May 2018 00:26:02 +0000 (-0400) Subject: Remove now-unnecessary cast. X-Git-Tag: REL_11_BETA1~110 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a365f52d58317e3b24e06564e1f6474ffa3221d4;p=thirdparty%2Fpostgresql.git Remove now-unnecessary cast. Etsuro Fujita Discussion: http://postgr.es/m/5AE99BA7.9060001@lab.ntt.co.jp --- diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index 1b811cccfca..78b0f43ca83 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -2007,7 +2007,7 @@ postgresBeginForeignInsert(ModifyTableState *mtstate, /* Check if we add the ON CONFLICT clause to the remote query. */ if (plan) { - OnConflictAction onConflictAction = ((ModifyTable *) plan)->onConflictAction; + OnConflictAction onConflictAction = plan->onConflictAction; /* We only support DO NOTHING without an inference specification. */ if (onConflictAction == ONCONFLICT_NOTHING)