Re: pgsql_tmp and external sort

From: "MauMau" <maumau307(at)gmail(dot)com>
To: "Soroosh Sardari" <soroosh(dot)sardari(at)gmail(dot)com>, "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgsql_tmp and external sort
Date: 2013-07-02 10:33:08
Message-ID: EE2BE9C0CF8E458ABFF084EE88AA15D0@maumau
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

From: "Soroosh Sardari" <soroosh(dot)sardari(at)gmail(dot)com>
> 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/ for sort implementation.
That uses BufFile in src/backend/storage/file/buffile.c,
which in turn uses OpenTemporaryFile in src/backend/storage/file/fd.c.

Regards
MauMau

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2013-07-02 10:39:46 signed vs. unsigned in plpy_procedure.c
Previous Message Maciej Gajewski 2013-07-02 09:53:39 Re: Review: query result history in psql