Re: maintenance_work_mem

From: Philip Semanchuk <philip(at)americanefficient(dot)com>
To: Atul Kumar <akumar14871(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: maintenance_work_mem
Date: 2020-11-19 16:43:18
Message-ID: 571B2F06-473D-4B6D-973E-E579F1B0B986@americanefficient.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Nov 19, 2020, at 3:05 AM, Atul Kumar <akumar14871(at)gmail(dot)com> wrote:
>
> Hi,
>
> I have below queries:
>
> 1. How do i check the maintenance_work_mem for current session, before
> setting some other value for this parameter for the same session.
>
> 2. and How do I set maintenance_work_mem for a session only, and how
> will it be "rollback" once my maintainance work is done, Do I need to
> execute any command for that or just closing the session will rollback
> what I set for the session.

In addition to Andreas’ helpful references to SHOW and SET, there’s also pg_settings --

https://www.postgresql.org/docs/13/view-pg-settings.html

Cheers
Philip

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Asya Nevra Buyuksoy 2020-11-19 18:27:24 Re: Upgrade 9.4 to 12 on windows system
Previous Message Adrian Klaver 2020-11-19 15:17:03 Re: Upgrade 9.4 to 12 on windows system