From: Pavan Deolasee Date: Fri, 4 Aug 2017 11:00:37 +0000 (+0530) Subject: Check for partitioned table correctly. X-Git-Tag: XL_10_R1BETA1~180 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=a32aeae041f4a8d8231806570eea17e46aaa889e;p=postgres-xl.git Check for partitioned table correctly. While checking where to forward DROP TABLE command, we were not checking for partitioned table correctly. That resuled in incorrectly sending DROP TABLE to remote coordinator for temporary partitioned tables. --- diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index f700207272..afb7331381 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -4573,6 +4573,7 @@ ExecUtilityFindNodesRelkind(Oid relid, bool *is_temp) { case RELKIND_SEQUENCE: case RELKIND_RELATION: + case RELKIND_PARTITIONED_TABLE: if ((*is_temp = IsTempTable(relid))) { if (IsLocalTempTable(relid))