Re: does work_mem is used on temp tables? - Mailing list pgsql-admin

From Mariel Cherkassky
Subject Re: does work_mem is used on temp tables?
Date
Msg-id CA+t6e1=+2N+SnS+jJg4BrFvFED8AQdzOzFMMgfEWVXKdKY_KWQ@mail.gmail.com
Whole thread Raw
In response to Re: does work_mem is used on temp tables?  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-admin
great, thanks !

‫בתאריך יום ה׳, 11 באוק׳ 2018 ב-10:42 מאת ‪Andrew Gierth‬‏ <‪andrew@tao11.riddles.org.uk‬‏>:‬
>>>>> "Mariel" == Mariel Cherkassky <mariel.cherkassky@gmail.com> writes:

 Mariel> Hi,
 Mariel> Does the work mem is used when I do sorts or hash operations on
 Mariel> temp tables ? Or the temp_buffer that is allocated at the
 Mariel> beginning of the session is used for it ?

work_mem is used for sorts and hashes regardless of what type the
underlying table (if any) is.

temp_buffers is used to buffer the actual _content_ of temp tables.

--
Andrew (irc:RhodiumToad)

pgsql-admin by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: does work_mem is used on temp tables?
Next
From: pavan95
Date:
Subject: Re: Null value returned by function pg_last_wal_receive_lsn()inLogical Replication