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 1loYUl-0000z1-Kj for pgsql-admin@arkaria.postgresql.org; Wed, 02 Jun 2021 21:33:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1loYUj-0004DQ-QL for pgsql-admin@arkaria.postgresql.org; Wed, 02 Jun 2021 21:33:45 +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 1loYUi-0004DH-9H for pgsql-admin@lists.postgresql.org; Wed, 02 Jun 2021 21:33:45 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loYUc-00041Z-Ru for pgsql-admin@lists.postgresql.org; Wed, 02 Jun 2021 21:33:43 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id ED745DAA; Wed, 2 Jun 2021 17:33:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 02 Jun 2021 17:33:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= quadratum-braccas.com; h=subject:to:cc:references:from :message-id:date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=fm2; bh=jRwlYaisxqjeCMAO9EUIbejexK bXVOBoqsDNpbwh/YA=; b=KBKOsvNFzNwcMn7rZyGY6yyOhTG0xNCFu84vwLcpis wh7/srlOY3doJzxY/aKamh4AQldL1YtcscYz6k+BcdpT5UZPVyKA59m9pIgVELXp Cg2unh2u4BwDNBwSuPKy68ZoGsCawscIfj58FjvE1sUaxs0enj2vZQzhwWsNCHFJ 62gXDy3v7JKRCEV/3YlGi+RUT++xxOe7sv8YkWhcaGWvO3I7oBT1ErpEljMHDu6B t6dvuEk6vyDT+xOfrTMGfi6an03EoEXYeX+maYc/eDejR6i0dySirxerl/AGIgzN WHKSAlFY3F/hQITYE493fUTw6vsVUSdn8l7HamxqF+Sg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=jRwlYaisxqjeCMAO9EUIbejexKbXVOBoqsDNpbwh/ YA=; b=YLTgCNdbmP0IxEAczUZmDw/5UZRaYfJUuqB8pKPBeRrmU8cjtDjinCRt2 9g57uztEu7QDLn1PhT6ItX9vYEhrWt0yWFgJTaoNCDxYiiv5Ynn5m/93wUDx0YUk 3umNBAww64/03Jjvonudka/RoCc4llxwxE6pHLmCt64i1gShXWys15E4N3l+I0ay CAGw4w7Lel73gaVQFzGqvcr4SxGaq6w/uASq93786aDxM3Fr7qgD9ryV+BSE8x2K uCO9B9OXf5E1IV4qbrWGFdJucuCNmhKQrghAFl3mRTVumWnp59SgEqDd0ExAsTP0 r6Sc71Mzbup/d5tjGWfoFlfWy5Hqw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeljedgudeivdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpehssgho sgcuoehssghosgesqhhurggurhgrthhumhdqsghrrggttggrshdrtghomheqnecuggftrf grthhtvghrnhepgfektdeitdeivdevgfetjeektdefveefjeetveeiffekvefhjeelgfel udeiveehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgsohgssehquhgrughrrghtuhhmqdgsrhgrtggtrghsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Jun 2021 17:33:32 -0400 (EDT) Subject: Re: column max length / max timestamps from system tables To: Scott Ribe Cc: Pgsql-admin References: <3cf4cc46-c017-a279-dec0-c68a99836bb2@quadratum-braccas.com> <06f401d757e9$fe3b13c0$fab13b40$@co.uk> <8CE52907-2264-43BA-9E90-DDC5F0E28109@elevated-dev.com> From: sbob Message-ID: Date: Wed, 2 Jun 2021 15:33:32 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <8CE52907-2264-43BA-9E90-DDC5F0E28109@elevated-dev.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Good point... I'll try this On 6/2/21 2:32 PM, Scott Ribe wrote: >> On Jun 2, 2021, at 2:00 PM, wrote: >> >> For the other column I’m guessing more work has to be done finding the length for each row. Maybe maintaining a column containing the current length for each row would help? > or a functional index >