Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p1ECp-00054i-U1 for pgsql-general@arkaria.postgresql.org; Fri, 02 Dec 2022 22:08:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p1ECo-00030x-Ru for pgsql-general@arkaria.postgresql.org; Fri, 02 Dec 2022 22:08:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p1ECo-00030o-HZ for pgsql-general@lists.postgresql.org; Fri, 02 Dec 2022 22:08:26 +0000 Received: from mout-u-107.mailbox.org ([80.241.59.207]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p1ECk-0000Ek-Ei for pgsql-general@lists.postgresql.org; Fri, 02 Dec 2022 22:08:26 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4NP6X00Jqnz9sQk; Fri, 2 Dec 2022 23:08:16 +0100 (CET) Date: Fri, 2 Dec 2022 23:08:11 +0100 (CET) From: Erik Wienhold To: Jonathan Lemig , pgsql-general@lists.postgresql.org Message-ID: <63158593.42022.1670018891326@office.mailbox.org> In-Reply-To: <2133999369.41448.1670016807570@office.mailbox.org> References: <2133999369.41448.1670016807570@office.mailbox.org> Subject: Re: Views "missing" from information_schema.view_table_usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 02/12/2022 22:33 CET Erik Wienhold wrote: > > > > On 02/12/2022 21:51 CET Jonathan Lemig wrote: > > > > Has anybody ever encountered this, and if so, did you find a resolution? > > Or perhaps there other limitations with the VTU that I'm unaware of? > > Is the one view you cannot find in view_table_usage a materialized view? > Because those are not covered by view_table_usage[1]. > > [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/catalog/information_schema.sql;h=18725a02d1fb6ffda3d218033b972a0ff23aac3b;hb=HEAD#l2605 Never mind. I forgot that you wrote that it appears in pg_views. So it's a plain view. -- Erik