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 1loYej-0001Oh-Q7 for pgsql-admin@arkaria.postgresql.org; Wed, 02 Jun 2021 21:44:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1loYei-0002gY-Ey for pgsql-admin@arkaria.postgresql.org; Wed, 02 Jun 2021 21:44:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loYei-0002gQ-5O for pgsql-admin@lists.postgresql.org; Wed, 02 Jun 2021 21:44:04 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loYeb-0004eU-4C for pgsql-admin@lists.postgresql.org; Wed, 02 Jun 2021 21:44:02 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1loYeY-0005BV-K6; Wed, 02 Jun 2021 17:43:54 -0400 Date: Wed, 2 Jun 2021 17:43:54 -0400 From: Bruce Momjian To: sbob Cc: Scott Ribe , Pgsql-admin Subject: Re: column max length / max timestamps from system tables Message-ID: <20210602214354.GA22019@momjian.us> References: <3cf4cc46-c017-a279-dec0-c68a99836bb2@quadratum-braccas.com> <06f401d757e9$fe3b13c0$fab13b40$@co.uk> <8CE52907-2264-43BA-9E90-DDC5F0E28109@elevated-dev.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jun 2, 2021 at 03:33:32PM -0600, sbob wrote: > Good point... I'll try this You could technically try to look at the pg_statistics values, but those are only populated by random page sampling, and only current as of the last analyze or autovacuum auto-analyze. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.