aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2018-05-02 20:26:02 -0400
committerRobert Haas <rhaas@postgresql.org>2018-05-02 20:27:05 -0400
commita365f52d58317e3b24e06564e1f6474ffa3221d4 (patch)
tree430d542096e6021e98feb9047ee9af3a20affc18 /contrib/postgres_fdw/postgres_fdw.c
parent1c72ec6f498945eb5981cdedd448aec3977477c8 (diff)
downloadpostgresql-a365f52d58317e3b24e06564e1f6474ffa3221d4.tar.gz
postgresql-a365f52d58317e3b24e06564e1f6474ffa3221d4.zip
Remove now-unnecessary cast.
Etsuro Fujita Discussion: http://postgr.es/m/5AE99BA7.9060001@lab.ntt.co.jp
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
-rw-r--r--contrib/postgres_fdw/postgres_fdw.c2
1 files changed, 1 insertions, 1 deletions
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)