From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Mitar <mmitar@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: CREATE UNLOGGED MATERIALIZED VIEW
Date: Tue, 25 Dec 2018 10:25:23 -0800
Message-ID: <ba64973f-c803-5718-d97d-7ea2fcc61db1@aklaver.com> (raw)
In-Reply-To: <CAKLmikPd9kDSH0gXjnYL2-CjBo=q=jo88x3fHTsScPLtrCdW4A@mail.gmail.com>
References: <CAKLmikNZ6qquFkh_eF9kWm5daTJy0PXhNt-xHT+iniYfaKkgZg@mail.gmail.com>
<d94dce13-ec14-dbd0-fa28-a7feb878e4a3@aklaver.com>
<CAKLmikPd9kDSH0gXjnYL2-CjBo=q=jo88x3fHTsScPLtrCdW4A@mail.gmail.com>
On 12/25/18 10:16 AM, Mitar wrote:
> Hi!
>
> That is for transient tables (NEW and OLD tables), no? Not for the
> main materialized view table.
Don't know. From my POV MATERIALIZED VIEWS are transient any way you
look at them. They capture a state at a point in time and then the data
they depend on moves on. Given that they can be refreshed at will not
sure logging/not logging really matters.
>
>
> Mitar
>
> On Tue, Dec 25, 2018 at 10:14 AM Adrian Klaver
> <adrian.klaver@aklaver.com> wrote:
>>
>> On 12/25/18 1:13 AM, Mitar wrote:
>>> Hi!
>>>
>>> I am looking at parser grammar rules and it looks like the following
>>> is a valid query:
>>>
>>> CREATE UNLOGGED MATERIALIZED VIEW
>>>
>>> Any particular reason this is not documented?
>>
>> My guess because of this:
>>
>> https://doxygen.postgresql.org/matview_8c.html
>>
>> Line 458-461
>>
>> "/*
>> * We can skip WAL-logging the insertions, unless PITR or streaming
>> * replication is in use. We can skip the FSM in any case.
>> */
>> "
>>
>>>
>>>
>>> Mitar
>>>
>>
>>
>> --
>> Adrian Klaver
>> adrian.klaver@aklaver.com
>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, mmitar@gmail.com
Subject: Re: CREATE UNLOGGED MATERIALIZED VIEW
In-Reply-To: <ba64973f-c803-5718-d97d-7ea2fcc61db1@aklaver.com>
References: <CAKLmikNZ6qquFkh_eF9kWm5daTJy0PXhNt-xHT+iniYfaKkgZg@mail.gmail.com> <d94dce13-ec14-dbd0-fa28-a7feb878e4a3@aklaver.com> <CAKLmikPd9kDSH0gXjnYL2-CjBo=q=jo88x3fHTsScPLtrCdW4A@mail.gmail.com> <ba64973f-c803-5718-d97d-7ea2fcc61db1@aklaver.com>
* 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