pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Lance Luvaul <lance.luvaul@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Full list of operations that constitute a "maintenance" operation?
Date: Fri, 09 Nov 2018 11:39:28 +0100
Message-ID: <a0d0d76db1614513b54f965062d194a5cc8c7613.camel@cybertec.at> (raw)
In-Reply-To: <CABJWDxSibrFwK11duJPxFcVs6jdDg8gqAm9S0jYdHK_bv9DPog@mail.gmail.com>
References: <CABJWDxSibrFwK11duJPxFcVs6jdDg8gqAm9S0jYdHK_bv9DPog@mail.gmail.com>

Lance Luvaul wrote:
> Hi all, I've read on the Postgres documentation for 'maintenance_work_mem' that VACUUM, CREATE INDEX,
> and ALTER TABLE ADD FOREIGN KEY are considered maintenance operations, but are there others?
> For example I use ALTER TABLE ADD COLUMN and ALTER TABLE SET LOGGED in my scripts...
> are they maintenance operations that would cause a maintenance_work_mem-sized chunk of memory
> (or more than 1 such chunk) to be allocated?  Is there a complete list somewhere?  Thanks!

Trawling the source shows that it is used for index operations like CREATE INDEX and REINDEX,
but also for ALTER TABLE ADD FOREIGN KEY, VACUUM and CLUSTER.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





view thread (3+ messages)  latest in thread

Message-ID: <a0d0d76db1614513b54f965062d194a5cc8c7613.camel@cybertec.at>
Permalink:  ../a0d0d76db1614513b54f965062d194a5cc8c7613.camel@cybertec.at/
Also on:    postgresql.org/message-id/a0d0d76db1614513b54f965062d194a5cc8c7613.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, lance.luvaul@gmail.com
  Subject: Re: Full list of operations that constitute a "maintenance" operation?
  In-Reply-To: <a0d0d76db1614513b54f965062d194a5cc8c7613.camel@cybertec.at>
  References: <CABJWDxSibrFwK11duJPxFcVs6jdDg8gqAm9S0jYdHK_bv9DPog@mail.gmail.com> <a0d0d76db1614513b54f965062d194a5cc8c7613.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox