Re: pgsql_tmp and external sort

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: Soroosh Sardari <soroosh(dot)sardari(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgsql_tmp and external sort
Date: 2013-07-02 09:11:36
Message-ID: 51D29948.6000509@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 02.07.2013 10:55, Soroosh Sardari wrote:
> Dear Hackers
>
> Recently I find about pgsql_tmp directory. As I think, this directory is a
> area for making temporal files which are used for external sort.
>
> I wonder if anyone could help me to find the module of pg that is
> responsible for the temporal space and external sort in the PG source code.

See src/backend/utils/sort/tuplesort.c and
src/backend/storage/file/buffile.c for starters.

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2013-07-02 09:30:37 Re: [9.4 CF 1] The Commitfest Slacker List
Previous Message Pavel Stehule 2013-07-02 09:05:55 Re: proposal: simple date constructor from numeric values