summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2017-08-04 11:00:37 +0000
committerPavan Deolasee2017-08-04 11:00:37 +0000
commita32aeae041f4a8d8231806570eea17e46aaa889e (patch)
tree8268f9ce9f04656a6abfc5ccd57b0bf9ece64d50
parentbedf71afd281a380cae25ed2728310ca625dbbd8 (diff)
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.
-rw-r--r--src/backend/tcop/utility.c1
1 files changed, 1 insertions, 0 deletions
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))