Re: SortMem...

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: mchron(at)aueb(dot)gr
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: SortMem...
Date: 2005-04-18 17:02:18
Message-ID: 200504181702.j3IH2IN26750@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

mchron(at)aueb(dot)gr wrote:
> Hi
> in the function ExecChooseHashTableSize()
> (~/src/backend/executor/nodeHash.c)
> are determined the bytes of the hash table. The correspondent code is:
>
> /*
> * Target in-memory hashtablesize in SortMem kilobytes
> */
> hash_table_bytes = SortMem *1024L
>
> (~/src/include/miscadmin.h)
> extern DLLIMPORT int SortMem;
>
> What SortMem represents? Where is evaluated and what is its value?
>
> I want to create 2 hash tables. One for the inner and one for the outer rel.
> What should be the hash_table_bytes in that case?

SortMem is a config value found in your postgresql.conf or using SHOW
SORTMEM.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2005-04-18 17:14:38 Re: Win32 presentation
Previous Message Bruce Momjian 2005-04-18 16:59:54 Re: Problem with PITR recovery