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 1lRzuK-0002Ie-Us for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Apr 2021 16:10:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRzuI-0008CH-Pf for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Apr 2021 16:10:54 +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 1lRzuH-0008CA-TC for pgsql-hackers@lists.postgresql.org; Thu, 01 Apr 2021 16:10:54 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRzuD-0007Ir-SV for pgsql-hackers@lists.postgresql.org; Thu, 01 Apr 2021 16:10:52 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id C8E071FC1; Thu, 1 Apr 2021 12:10:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 01 Apr 2021 12:10:46 -0400 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:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=7FZqXcrAPR/8pT9b/E0IbU5F+FKk1zPXmbIgtIsuerM=; b=so06v5bX mnOCb8qyV7aai9YC89UzFwn+KyhPMNJki/6ZOWj3elR5wHO6G1on/WZ0DDYOx/7p A8iCFZoa/ukQy7D9Hjpl5H4MiPK6m1r0mBCwGKD2sK4rbNFLYh98QpjifKzwEgq+ 8vzpWb5tuOxi4bvGag5VRk4PMuibhCwhC9q0hDmeY7cHXzMxxrv3gTyasQnWKRhn dUjXViU9reeDveoUQiEMZ0sKaJv7FJeyZbdi9m8BZCIDKxsZmwrYAueGiNRbqI5P Dj0EgjcGbv9+jVaqQ076pI0diZh5MKGCmbjYnixngpFh6z3+8gfpIUT+kp+c6Gxt 8LIUfoL+/632Gw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeigedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoteeftdelqddtudculddvtddmnecujfgurhepff fhvffukfggtggugfgjfgesthekredttderudenucfhrhhomhepfddkrghlvhhhvghrrhgv segrlhhvhhdrnhhoqdhiphdrohhrghdkfdcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnoh dqihhprdhorhhgqeenucggtffrrghtthgvrhhnpeehkeegiedvueffleehtdeuffetjeej tdetteeukeduvdegudeihfefffevffdtudenucfkphepudeltddrleehrdduledrleehne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 601A524005B; Thu, 1 Apr 2021 12:10:44 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C3FB52A032E; Thu, 1 Apr 2021 13:10:41 -0300 (-03) Date: Thu, 1 Apr 2021 13:10:41 -0300 From: "'alvherre@alvh.no-ip.org'" To: Tom Lane Cc: "iwata.aya@fujitsu.com" , "tsunakawa.takay@fujitsu.com" , 'Kyotaro Horiguchi' , "k.jamison@fujitsu.com" , "pgsql-hackers@lists.postgresql.org" Subject: Re: libpq debug log Message-ID: <20210401161041.GA10892@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3407933.1617288599@sss.pgh.pa.us> 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 2021-Apr-01, Tom Lane wrote: > BTW, what in the world is this supposed to accomplish? > > - (long long) rows_to_send); > + (1L << 62) + (long long) rows_to_send); > > Various buildfarm members are complaining that the shift distance > is more than the width of "long", which I'd just fix with s/L/LL/ > except that the addition of the constant seems just wrong to > begin with. It makes the text representation wider, which means some buffer fills up faster and the program switches from sending to receiving. -- Álvaro Herrera Valdivia, Chile "Ni aún el genio muy grande llegaría muy lejos si tuviera que sacarlo todo de su propio interior" (Goethe)