Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1roV31-001qjz-Em for pgsql-general@arkaria.postgresql.org; Sun, 24 Mar 2024 21:06:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1roV2y-00FVAr-RY for pgsql-general@arkaria.postgresql.org; Sun, 24 Mar 2024 21:06:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1roV2y-00FVAj-Gp for pgsql-general@lists.postgresql.org; Sun, 24 Mar 2024 21:06:29 +0000 Received: from fhigh5-smtp.messagingengine.com ([103.168.172.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1roV2q-006EA1-VV for pgsql-general@lists.postgresql.org; Sun, 24 Mar 2024 21:06:27 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 6679E11400BD; Sun, 24 Mar 2024 17:06:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 24 Mar 2024 17:06:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1711314381; x=1711400781; bh=TBAtu16nN6tWdiCw3usErkjtktymExPcnFNa20734Y0=; b= JYJVsqaI+l0YXPAva1J1T9SxrVDHXaZkBpkx2fzNsT//537NpUIsJ9PlvtNHBJcd 24gMeH1UjsYhzYB27Mxnfjs0L5ml0kdy152t23NGwkewlk1YqukFFhQ+GbOgJwEM D1B0XgfI/XaaIkD5W5RFJTgqxJ9jcjnfqjie8b6D3yPM3y1sPbtbcuYGqwblTmuE zLUZ8LMtKYCyz+fzUhk51VvjGEyL3wtOcdO7nHWSUjQV+dbyndVgtdo8r5TqEoVE Rd7uXP+1wx/KGPwrhGaXHevsqELvBDL53c3WAT39GK3Cm1fVPvBxo4qAcr3PGCUj Zt8NOULhwiM9imBwQxSUvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1711314381; x= 1711400781; bh=TBAtu16nN6tWdiCw3usErkjtktymExPcnFNa20734Y0=; b=P FJP4oC4tCVp0aHL5ASc3EumTtx0aLiRKGhor44NtXwZ+kH7Ol3ycgENEZW8qaInj lglOTCfkVe1iAeihg7XlLp39WeJW7Alck4JLv3LzblNj8QVYpY0HJFdg5OTXoj1q ZxVnTMSLSmoexln36udJj/mbM1xkJoyDfH+b13nFBl4apyKsQsjHd7FZnxS5DDK4 spfRVIlIEg7DKxh1adMQ8TkAOv+IZrcHczmX6UeMmmd+ftdGmYbuHTGY8IIGcJjA 7iwbQZ0Uec/zOhT9Oc5GXMMcHgaw7KWM32yPkeyuunB663deAhCSQulWyAJ7Yy8L BAyfd4Mz99G9GG0hFFrSg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddtjedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepleegveekkeekueeigfdtveeileeuhfefudefteek jeffkeejueejheegheegkedtnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughr ihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Mar 2024 17:06:20 -0400 (EDT) Message-ID: Date: Sun, 24 Mar 2024 14:06:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Empty materialized view Content-Language: en-US To: Thiemo Kellner , "pgsql-general@lists.postgresql.org" References: <33aa6b8e-86fc-4f10-9242-e0c9ad39c007@gelassene-pferde.biz> <2ec1a2bd-7791-4cc5-90ed-1b7b606aa420@gelassene-pferde.biz> <61e2c2b7-1098-4179-91a2-24e06e0683a9@aklaver.com> <983c4ea7-4861-436a-a23e-f40780c9f0d6@gelassene-pferde.biz> From: Adrian Klaver In-Reply-To: <983c4ea7-4861-436a-a23e-f40780c9f0d6@gelassene-pferde.biz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/24/24 13:58, Thiemo Kellner wrote: > Am 24.03.2024 um 21:50 schrieb Adrian Klaver: >> On 3/24/24 13:36, Thiemo Kellner wrote: >> It does depending on the order of viewing. Namely if you viewed the >> 'old' empty MV in the outside session before you dropped/created the >> 'new' MV and committed the changes. > > Something like the viewing session is in a transaction before the > (re-)creation of the mv? > > The view session is on auto commit. (It's sole purpose to query stuff > and not to have explicitly terminate transactions do to syntax errors > and so on.) Autocommit will only affect actions in that session, it will not make the other sessions actions visible. That depends on the other sessions committing actions. See: https://www.postgresql.org/docs/current/transaction-iso.html > > Feeling quite dumb now. But then, there neither is data visible in the > install session. > > insert data into TASK_DEPENDENCY⠒V > INSERT 0 34 The above says the data was inserted. > COMMIT >  count > ------- >      0 Where and when was the count query run? > (1 row) > > > Thanks for taking care. -- Adrian Klaver adrian.klaver@aklaver.com