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:
5591450
)
resolve crashes in queries involving merge-sort in a RemoteSubplan
author
Tomas Vondra
<
[email protected]
>
Tue, 17 Jan 2017 20:06:37 +0000
(21:06 +0100)
committer
Tomas Vondra
<
[email protected]
>
Tue, 17 Jan 2017 20:06:37 +0000
(21:06 +0100)
src/backend/utils/sort/tuplesort.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/sort/tuplesort.c
b/src/backend/utils/sort/tuplesort.c
index 3c16282b307100b65417cc3de7a5f1e7e87bd32c..d2ba7d968c1eda99b813ea4880d1543ea8691e94 100644
(file)
--- a/
src/backend/utils/sort/tuplesort.c
+++ b/
src/backend/utils/sort/tuplesort.c
@@
-1176,7
+1176,9
@@
tuplesort_begin_merge(TupleDesc tupDesc,
state->writetup = NULL;
state->readtup = readtup_datanode;
state->getlen = getlen_datanode;
- state->movetup = movetup_heap;
+
+ state->tuples = false;
+ state->batchUsed = false;
state->tupDesc = tupDesc; /* assume we need not copy tupDesc */
state->sortKeys = (SortSupport) palloc0(nkeys * sizeof(SortSupportData));