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 1p1EIU-0005X4-CN for pgsql-general@arkaria.postgresql.org; Fri, 02 Dec 2022 22:14:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p1EIT-00010F-9T for pgsql-general@arkaria.postgresql.org; Fri, 02 Dec 2022 22:14:17 +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 1p1EIS-000106-V8 for pgsql-general@lists.postgresql.org; Fri, 02 Dec 2022 22:14:16 +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 1p1EIR-0000M9-1q for pgsql-general@lists.postgresql.org; Fri, 02 Dec 2022 22:14:16 +0000 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (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 4NP6fp20Wpz9sRP; Fri, 2 Dec 2022 23:14:10 +0100 (CET) Date: Fri, 2 Dec 2022 23:14:05 +0100 (CET) From: Erik Wienhold To: Jonathan Lemig , "David G. Johnston" Cc: pgsql-general@lists.postgresql.org Message-ID: <1540400959.42131.1670019245837@office.mailbox.org> In-Reply-To: References: Subject: Re: Views "missing" from information_schema.view_table_usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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:55 CET Jonathan Lemig wrote: > > drps=3D> select viewowner, schemaname, viewname from pg_views where viewn= ame =3D 'platform_version_v'; > =C2=A0viewowner | schemaname | viewname > -----------+------------+-------------------- > =C2=A0drps | event | platform_version_v > (1 row) > > drps=3D> select * from information_schema.view_table_usage where view_nam= e =3D 'platform_version_v'; > =C2=A0view_catalog | view_schema | view_name | table_catalog | table_sche= ma | table_name > --------------+-------------+-----------+---------------+--------------+-= ----------- > (0 rows) > > The event.platform_version_v doesn't show up when querying the view_table= _usage view. Does platform_version_v reference any tables? That view name suggests that= it provides some version info, e.g. with a definition like: create view event.platform_version_v as select '1.0.0' as version; In that case it won't appear in view_table_usage. -- Erik