Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ihyD6-0006vv-AB for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Dec 2019 15:59:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ihyD5-0005Na-3L for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Dec 2019 15:59:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ihyD4-0005NT-Mv for pgsql-hackers@lists.postgresql.org; Thu, 19 Dec 2019 15:59:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ihyD2-0004Rr-Fo for pgsql-hackers@lists.postgresql.org; Thu, 19 Dec 2019 15:59:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xBJFxRf4000557; Thu, 19 Dec 2019 10:59:27 -0500 From: Tom Lane To: Bruce Momjian cc: v.makarov@postgrespro.ru, pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] Increase the maximum value track_activity_query_size In-reply-to: <20191219154110.GL30116@momjian.us> References: <7b5ecc5a9991045e2f13c84e3047541d@postgrespro.ru> <20191219154110.GL30116@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 19 Dec 2019 10:41:10 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <555.1576771167.1@sss.pgh.pa.us> Date: Thu, 19 Dec 2019 10:59:27 -0500 Message-ID: <556.1576771167@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > Good question. I am in favor of allowing a larger value if no one > objects. I don't think adding the min/max is helpful. I think there are pretty obvious performance and memory-consumption penalties to very large track_activity_query_size values. Who exactly are we really helping if we let them set it to huge values? (wanders away wondering if we have suitable integer-overflow checks in relevant code paths...) regards, tom lane