8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5f366e commit ead2193Copy full SHA for ead2193
src/backend/utils/sort/psort.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.6 1997/08/06 03:41:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.7 1997/08/06 04:45:39 momjian Exp $
11
12
* NOTES
13
* Sorts the first relation into the second relation.
@@ -570,7 +570,7 @@ dumptuples(Sort *node)
570
HeapTuple tup;
571
int memtupindex = 0;
572
573
- if (! PS(node)->using_tape_files) {
+ if (! PS(node)->using_tape_files && PS(node)->tupcount) {
574
Assert(PS(node)->memtuples == NULL);
575
PS(node)->memtuples = palloc(PS(node)->tupcount * sizeof(HeapTuple));
576
}
0 commit comments