Re: pgsql_tmp and external sort - Mailing list pgsql-hackers

From MauMau
Subject Re: pgsql_tmp and external sort
Date
Msg-id EE2BE9C0CF8E458ABFF084EE88AA15D0@maumau
Whole thread Raw
In response to pgsql_tmp and external sort  (Soroosh Sardari <soroosh.sardari@gmail.com>)
List pgsql-hackers
From: "Soroosh Sardari" <soroosh.sardari@gmail.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




pgsql-hackers by date:

Previous
From: Maciej Gajewski
Date:
Subject: Re: Review: query result history in psql
Next
From: Andres Freund
Date:
Subject: signed vs. unsigned in plpy_procedure.c