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 1roU7j-001jPu-Sd for pgsql-general@arkaria.postgresql.org; Sun, 24 Mar 2024 20:07:21 +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 1roU7i-00F08k-AY for pgsql-general@arkaria.postgresql.org; Sun, 24 Mar 2024 20:07:18 +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 1roU7g-00F08V-JU for pgsql-general@lists.postgresql.org; Sun, 24 Mar 2024 20:07:18 +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 1roU7b-006Dmt-3b for pgsql-general@lists.postgresql.org; Sun, 24 Mar 2024 20:07:15 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id B016911400F6; Sun, 24 Mar 2024 16:07:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 24 Mar 2024 16:07:10 -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=1711310830; x=1711397230; bh=FAwPjZ7SzxIMAVwExVXefAaekk9Iz0Ohvaq9GLRZZOY=; b= LttaxAM/l4CWEcz/PJS8FXz+T+Z5qFtLMR6EdcSVQ/P+kdZDathwHAVpZnrDkvVo /ndpXFmwTZjueohr6ZuerBjcbGO1pTH2SnH9cpTklJNbXpOaoruYgclfybNLlXSB dWL2mwMeGIcGvk8EShNGhEE6KOCpq/gZcwyrMQVWaz506ikfOEI8PietvQHM2PYJ a4JXae3lqA5MQ9T/YZpbRtGUIBHOJbacImN5dYjse9P+CshbElXdzOWgkeQtsOaZ 7hQfrmWgFaZdW5nn8KQqDpGAQtC+0bzFZKG/oKeZH70P94ef11JuoMLVNrdY/UN1 HvNZFZskxUIMzf4GCZpoBw== 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=1711310830; x= 1711397230; bh=FAwPjZ7SzxIMAVwExVXefAaekk9Iz0Ohvaq9GLRZZOY=; b=o ucCJ70tYVTZEfpo/e8O2ICCrJBupgo9ywpo/ZfIyqFE1XeskfvMcUdN4yVdYYjXB p2G+DnnDW8hWJGBv5VxzwI7kq9JLwe5kHSf5IGwRZdb9fG1itHqS3vxeKfNqFpzE BRnKzmMeQXREV5yyq6GRJPKRnlPKQNNcmtTwpBCMGd12qcPjoWed9xeWl0JtGtqk HgOJ6BTvccYRG9NQds75HXwnYUaxWhgQd2Ps2bQ08HTsLvIXuRolREb9F8XIOXzM BQxcejTE6lFzt6TqGxXk1NrefErRkY6q41qQyFt3RZUsOztjtY1cT/4Plaovf7sM iJOWgMtyzlJrA9pzhv75A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddtjedgudefiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepiedvhfeiheehgeeuieeljeeitedtjeehudegfeel kedvleekhedtgfeiffefkedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Mar 2024 16:07:09 -0400 (EDT) Message-ID: Date: Sun, 24 Mar 2024 13:07:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Empty materialized view To: Thiemo Kellner , "pgsql-general@lists.postgresql.org" References: <33aa6b8e-86fc-4f10-9242-e0c9ad39c007@gelassene-pferde.biz> Content-Language: en-US From: Adrian Klaver In-Reply-To: <33aa6b8e-86fc-4f10-9242-e0c9ad39c007@gelassene-pferde.biz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/24/24 11:12, Thiemo Kellner wrote: > Hi > > I have created a materialized view with "with data". And I refreshed it > with "with data". The query of the mv returns records when executed > outside the mv. I would appreciate help with respect to what I miss that > my mv is empty. You might want to have a look at the code attached. That does not contain the statements mentioned above. Provide a simple test case as code inline to your reply. > > Kind regards > > Thiemo -- Adrian Klaver adrian.klaver@aklaver.com