From a365f52d58317e3b24e06564e1f6474ffa3221d4 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 2 May 2018 20:26:02 -0400 Subject: [PATCH] Remove now-unnecessary cast. Etsuro Fujita Discussion: http://postgr.es/m/5AE99BA7.9060001@lab.ntt.co.jp --- contrib/postgres_fdw/postgres_fdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index 1b811cccfc..78b0f43ca8 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)