projects
/
postgres-xl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bedf71a
)
Check for partitioned table correctly.
author
Pavan Deolasee
<
[email protected]
>
Fri, 4 Aug 2017 11:00:37 +0000
(16:30 +0530)
committer
Pavan Deolasee
<
[email protected]
>
Fri, 4 Aug 2017 11:00:37 +0000
(16:30 +0530)
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.
src/backend/tcop/utility.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/tcop/utility.c
b/src/backend/tcop/utility.c
index f70020727203abeec62eca740d80ad1fc052d2cf..afb7331381390b27166711d4721c7fcd1539c3a7 100644
(file)
--- 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))