Re: temp_buffers and work_mem and big temp tables

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: temp_buffers and work_mem and big temp tables
Date: 2020-11-10 19:04:36
Message-ID: CAKFQuwZHNzzCmoGS212V1Ahz8gkak_LLmDgKNVq-xnWtj55B5g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tuesday, November 10, 2020, Wells Oliver <wells(dot)oliver(at)gmail(dot)com> wrote:

> Hey all: I was wondering if someone might spell out which setting has more
> impact on temporary tables being stored in memory versus disk? I have read
> the docs but I thought I'd reach out and ask the community: I keep
> increasing both in some scripts where Large Temp Tables are created, but
> I'm wondering if it's more efficient just to use one or the other.
>

IIUC work_mem has nothing to do with temporary tables. All tables have a
disk component and read/writes are done via buffers.

David J.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2020-11-10 19:32:17 Re: temp_buffers and work_mem and big temp tables
Previous Message Wells Oliver 2020-11-10 18:53:52 temp_buffers and work_mem and big temp tables