Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tgSbQ-00AsGV-Hf for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2025 17:57:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tgSbN-003pkZ-N3 for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2025 17:57:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tgSbN-003pkR-BY for pgsql-hackers@lists.postgresql.org; Fri, 07 Feb 2025 17:57:17 +0000 Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tgSbL-003o9i-0i; Fri, 07 Feb 2025 17:57:16 +0000 Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-3d144f1f68bso2087685ab.3; Fri, 07 Feb 2025 09:57:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738951035; x=1739555835; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Vah1cOdu6eQyEYOz7Qfjza76yD8Xzlsa2SsrQ1fAB60=; b=JgPFyyq6cnu+0KEbR4Hc//ymkkTaKdlLyclPVRJAGrUEmksr0aiyQbtAFpl+X2H+ZL QXJfElgtgdLfhMu2ISyxFBdCF/PLl8dbMXgZfyHCnm3L4bUr7JTvreJp5srdYk/WU2iI uEbSfyTK4h0QK28eXzndfG6L69kt5Z9rrV3w7pygc1D6yCGBiHaNBpzzKeIiCGJM+YZZ a4GBjX4m971x45ofuM+YbzlFRGNgj69r1GqKkXn5hDjpZ9WF9A9rc57nreeY1EkO2A+U sv17or5X52GfHGFOPqwOsgcPCBWfUKSy2vt9aE0dRnSUrhXE2bIINs2+d3FrgoxANJnk OVpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738951035; x=1739555835; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Vah1cOdu6eQyEYOz7Qfjza76yD8Xzlsa2SsrQ1fAB60=; b=YbqejjlXxMVmpWHOmvWYHZXuhqUENMlch63B4O2wJrxRe3TNufQmnbZTbMyHYNbCd+ zn5cgi8RAegfu8lNjcODs/A+1xscjYeAe1RgRDa7353KhG9vcISZr8Q070yeedxX1AxD H7z19q8oMLudtpL7wSyZi5Ehz3O1Ec/Ujgzst1MkzrcztWXkr0eivye1cRR+YhFTkcM2 MP37anegINxZ9lspheWE6+0/mB4L72H/If4vgLFvn1JgjWZR3dHG8TpsI0mopy+1/W55 uLRNhy9Jir7g1zHSxuNx3vZi4qiPicBNZYOcRPDMBAVCSV0a73FWdWwqDisgxC3EaXR2 qmkw== X-Forwarded-Encrypted: i=1; AJvYcCUVDvXUBv6K3u+a/cOQaWa4ujb5V32JaKARRFkKkShb6e4jZox73W378EOo3eDN4o0htXmYDA==@postgresql.org, AJvYcCXv+FCMYs5daHO93ADAIaBOIaSgKtS897iLnJyV85KLub4wnqVhlg89viiHMxVKoD+tJIYnFdUDU5yw7n3l+Q==@postgresql.org X-Gm-Message-State: AOJu0YyLWVzKixwa0ezcPga5DQhnIsA0ptz5N62xw2gQEfqJf+7AYld5 bHxi8kX0oCiwvsTWf5AikJ6KSQVpQpUZmAP+b6AUkeGyootum+ym X-Gm-Gg: ASbGncvltnGm/M94JXlXav8lg2cNYYvfJ4dQPabXI2nojmIKED3EOZxMv+Pe9IR/seP gmcG/dy0nJkQd5nk61FZziG/nQ0UsnJUitn/WOir3MzIebKE/OgiTz4Z3n+Pm9uxb+TrGTZNkt4 e5ggA50JMBRVtNS0kwPhyg6xGGP52VJ1Ovdu1rzZ0BlHNEg1VBKHwu1qYsj/FtfkAhSD8CdPWSy kYLhbRIEAhzofjX4rWJK8hhs6VvCdLH0xCRnX0txNGGZwK/9yfvzBtTelWQEdpwel6+M/5DHgHV aVmjC+Hhlg+Jnp6Q9DmZLYZS8u2CO10kZUEkbmXo6cvZi5/7cFUoL6SOB2ozgsdR1P/2CNpW1Js NdsuKOA== X-Google-Smtp-Source: AGHT+IHzqUkPMdCNi5Ovfd7jAGgz6ZegjMu6+ahDb/7KFAi7bFgVT9MB8DVJpm6RXsu6CakfWCS4mg== X-Received: by 2002:a05:6e02:12e9:b0:3ce:78e5:d36d with SMTP id e9e14a558f8ab-3d13dd3f53bmr31977465ab.12.1738951034787; Fri, 07 Feb 2025 09:57:14 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4eccfb34292sm832471173.138.2025.02.07.09.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 09:57:14 -0800 (PST) Date: Fri, 7 Feb 2025 11:57:12 -0600 From: Nathan Bossart To: Andres Freund Cc: Fujii Masao , Tatsuo Ishii , pgsql-release@lists.postgresql.org, pgsql-hackers@postgresql.org Subject: Re: Fix for Extra Parenthesis in pgbench progress message Message-ID: References: <85fe426d-248a-47f7-8784-22af811ee572@oss.nttdata.com> <20241108.114713.484828673471024549.ishii@postgresql.org> <95f1100e-e59b-41b7-a406-f865c2e69db7@oss.nttdata.com> <20241125.083155.1820744655877715597.ishii@postgresql.org> <4k4drkh7bcmdezq6zbkhp25mnrzpswqi2o75d5uv2eeg3aq6q7@b7kqdmzzwzgb> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4k4drkh7bcmdezq6zbkhp25mnrzpswqi2o75d5uv2eeg3aq6q7@b7kqdmzzwzgb> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Feb 07, 2025 at 12:28:16PM -0500, Andres Freund wrote: > I just did pgbench -i 100 -q via ssh and noticed it was *way* slower than I > expected. Did it with debian's pgbench, no such issue. > > It's due to this patch. > > /srv/dev/build/m-opt/src/bin/pgbench/pgbench -i -s 10 -Idtg -h /tmp -q > /tmp/pgiu 2>&1 > > With HEAD: > pgbench -i -s 10 -Idtg -h /tmp -q 2>&1|wc > 1000114 52 1000448 > > With af35fe501af reverted: > pgbench -i -s 10 -Idtg -h /tmp -q 2>&1|wc > 6 52 340 > > Outputting that many lines to the terminal causes noticeable slowdowns even > locally and make the terminal use a *lot* more cpu cycles. Presumably we should only fputc(eol, stderr) when we actually fprintf() above this point. > Given the upcoming set of minor releases, I think it may be best for this this > patch ought to be reverted for now. +1, since we're nearing the freeze and this doesn't seem like a particularly urgent bug fix. -- nathan