public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tobias McNulty <[email protected]>
To: [email protected]
Subject: documentation question regarding REFRESH MATERIALIZED VIEW CONCURRENTLY
Date: Sat, 22 Feb 2025 20:57:52 -0500
Message-ID: <CAMGFDKTW+SgLgdqRNa4cx9x1rFbA=2_8SE51r30A8o+9N2ikpA@mail.gmail.com> (raw)
Hello,
The documentation [1] for REFRESH MATERIALIZED VIEW states that the
"CONCURRENTLY" parameter:
> Refresh[es] the materialized view without locking out concurrent selects on the materialized
> view. Without this option a refresh which affects a lot of rows will tend to use fewer
> resources and complete more quickly, but could block other connections which are trying to
> read from the materialized view. This option may be faster in cases where a small number
> of rows are affected.
I can read the phrase "affects a lot of rows" in two ways.
Specifically, either that (1) the refresh operation actually updates
the contents of a lot of rows in the materialized view, or (2) that
the materialized view itself contains a lot of rows, regardless of
whether or not they change with each refresh.
Could someone knowledgeable in this area possibly clarify which of
these is the correct interpretation, or if there is another
interpretation I may be missing?
Thanks in advance for your help.
Tobias
[1] https://www.postgresql.org/docs/17/sql-refreshmaterializedview.html
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: documentation question regarding REFRESH MATERIALIZED VIEW CONCURRENTLY
In-Reply-To: <CAMGFDKTW+SgLgdqRNa4cx9x1rFbA=2_8SE51r30A8o+9N2ikpA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox