From 26c48b5e8cffafaf3b8acf345ca9fd8a1e408a54 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 17 Oct 1999 22:15:09 +0000 Subject: Final stage of psort reconstruction work: replace psort.c with a generalized module 'tuplesort.c' that can sort either HeapTuples or IndexTuples, and is not tied to execution of a Sort node. Clean up memory leakages in sorting, and replace nbtsort.c's private implementation of mergesorting with calls to tuplesort.c. --- src/backend/utils/sort/logtape.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/utils/sort/logtape.c') diff --git a/src/backend/utils/sort/logtape.c b/src/backend/utils/sort/logtape.c index 8d5d34c00a..46497598b5 100644 --- a/src/backend/utils/sort/logtape.c +++ b/src/backend/utils/sort/logtape.c @@ -4,8 +4,8 @@ * Management of "logical tapes" within temporary files. * * This module exists to support sorting via multiple merge passes (see - * psort.c). Merging is an ideal algorithm for tape devices, but if we - * implement it on disk by creating a separate file for each "tape", + * tuplesort.c). Merging is an ideal algorithm for tape devices, but if + * we implement it on disk by creating a separate file for each "tape", * there is an annoying problem: the peak space usage is at least twice * the volume of actual data to be sorted. (This must be so because each * datum will appear in both the input and output tapes of the final @@ -23,7 +23,7 @@ * Few OSes allow arbitrary parts of a file to be released back to the OS, * so we have to implement this space-recycling ourselves within a single * logical file. logtape.c exists to perform this bookkeeping and provide - * the illusion of N independent tape devices to psort.c. Note that + * the illusion of N independent tape devices to tuplesort.c. Note that * logtape.c itself depends on buffile.c to provide a "logical file" of * larger size than the underlying OS may support. * @@ -63,7 +63,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/sort/logtape.c,v 1.1 1999/10/16 19:49:27 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/sort/logtape.c,v 1.2 1999/10/17 22:15:05 tgl Exp $ * *------------------------------------------------------------------------- */ -- cgit v1.2.1