Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gbrOY-0003Pi-IG for pgsql-general@arkaria.postgresql.org; Tue, 25 Dec 2018 18:25:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gbrOX-0000hT-3O for pgsql-general@arkaria.postgresql.org; Tue, 25 Dec 2018 18:25:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gbrOW-0000fR-Ni for pgsql-general@lists.postgresql.org; Tue, 25 Dec 2018 18:25:32 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gbrOP-0005AH-Jd for pgsql-general@lists.postgresql.org; Tue, 25 Dec 2018 18:25:31 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BA7B2210F2; Tue, 25 Dec 2018 13:25:24 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 25 Dec 2018 13:25:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=7 LUQFsOX889Q4URcNyn11L6EVJgaE8fpfPWZbAi8rf8=; b=0Kh8GOmLwsUeM3Klm JU8CABmH+viCGD6PThLj2p6S24mJHAArdApOpdPVdVuyXVvceaaUxQL9Bk7APAZ6 1ErKSNAwtykbpwxozjaQlr9Z1lbwcbE9n/W9/ukSsqbzlBMKJOpcrr7+ayIVY3FT keOTFZv+PIVXyD0GhB8HTHEby1U+MuJWdR2cXZTtdjqfvtgNXrD5OkFhUJyJXYOx 7eAPGmIQMDF+wRy9t0Y4iHaOO9Om8q2l3xQ5QO/fGAF6avhyer5ZcCUJWAblZo7j /YgK065s4BoknuSxJ8cdGBzPE+iXila95pyH/CT5tiO0isRP+sXsV7sQOLDcIG/t MqQsg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=7LUQFsOX889Q4URcNyn11L6EVJgaE8fpfPWZbAi8r f8=; b=RGb3H1EBaPcZQtFUiEmFtDfYTIHk4MMcE6DiSODSayW55thCqvA6Qd/Lj Sm9oSA9RfvQct+frOc2gJZ5u8xH6u4izSM18YBp/Ay47rUq3rhJMXNVAHHXABkGw 50xfyBvUpTK0GX8u1Kv3eer3bOQNDJHDXff3XCZfaEwMvOx+fHPWzDFj7xDxx7tH 82MYI5kK64EAez1PY58FLI2fpZ8kJsAbd9Ik2KS3zwOknu/ZGgsA5Ajfwmllg1fd HyXC0YLkHy7zOyDh/xaCdHGHdKVCmHgs4sePfEeaOyNIEizlQreC5Lbw6gXP0kzR F9J+08AIdEXTnpV28ZcHj+2TaxCcw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudekfedgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecu fedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhroh hmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgr vhgvrhdrtghomheqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkph epjedurddvuddvrddufeegrdefnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgr nhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.2] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id C4131100B9; Tue, 25 Dec 2018 13:25:23 -0500 (EST) Subject: Re: CREATE UNLOGGED MATERIALIZED VIEW To: Mitar Cc: pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Tue, 25 Dec 2018 10:25:23 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 > 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