Remove now-unnecessary cast.
authorRobert Haas <rhaas@postgresql.org>
Thu, 3 May 2018 00:26:02 +0000 (20:26 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 3 May 2018 00:27:05 +0000 (20:27 -0400)
Etsuro Fujita

Discussion: http://postgr.es/m/5AE99BA7.9060001@lab.ntt.co.jp

contrib/postgres_fdw/postgres_fdw.c

index 1b811cccfca5afe77f131a2816ae8f9bf0daab66..78b0f43ca8376bb6d4435732cb83a7d7b2a718dd 100644 (file)
@@ -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)