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.96) (envelope-from ) id 1woybt-001MEz-0d for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jul 2026 07:21:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1woybs-004auP-0g for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jul 2026 07:21:48 +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.96) (envelope-from ) id 1woybr-004auH-2X for pgsql-hackers@lists.postgresql.org; Wed, 29 Jul 2026 07:21:47 +0000 Received: from mail.postgrespro.ru ([93.174.132.70]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1woybo-00000000rkJ-2HeY for pgsql-hackers@lists.postgresql.org; Wed, 29 Jul 2026 07:21:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1785309700; bh=FWiB6pwODoKppuj79fNob40y2P9Kjofx43Nl5ClK6cY=; h=From:Subject:Message-Id:Date:To:From; b=SW9N3e2b58Meiz/lsUxJXg7DgxfrqCghFzp17Naj7vWub/NRDECkNx6ECMQY8ji7c sJPdVD+x7/4PuAQZquWgdA2pCPkF10KSHM5dTf/Hr1q7TFhA0lFPVKSuKNshzSQkRb 5A5uHzNeUX4i5wgR7st9uvXOXVoVtj1xTB0ziH1uWgfuVfle598ocEDdYwW0SMrMVg sQvUq8FhOHJ0UPiST9onT54qymp+IhIlNnwTaQbW7XnCbPwhtHc0c8OLW6dzSd7vA3 kAa5cLXy0506nLDxwB5yvLefFftrbqj6ye3oajUyvO+47EHhnXroEzdPAoYqviJLTx Hxg6MjWWZqw6A== Received: from smtpclient.apple (debian11-template.l.postgrespro.ru [192.168.2.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: s.shinderuk@postgrespro.ru) by mail.postgrespro.ru (Postfix/465) with ESMTPSA id 97EC660DBF for ; Wed, 29 Jul 2026 10:21:40 +0300 (MSK) From: =?utf-8?B?0KHQtdGA0LPQtdC5INCo0LjQvdC00LXRgNGD0Lo=?= Content-Type: multipart/mixed; boundary="Apple-Mail=_E1BA4067-9F8F-4748-BAC0-E456BD6A4F63" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.300.41.1.7\)) Subject: Typos in smgr.c Message-Id: Date: Wed, 29 Jul 2026 10:21:30 +0300 To: PostgreSQL Hackers X-Mailer: Apple Mail (2.3864.300.41.1.7) X-KSMG-AntiPhishing: NotDetected, bases: 2026/07/29 06:41:00 X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 3.0.0.9059, bases: 2026/07/29 05:06:00 #28581773 X-KSMG-AntiVirus-Status: NotDetected, skipped X-KSMG-LinksScanning: not scanned, disabled by settings X-KSMG-Message-Action: skipped X-KSMG-Rule-ID: 1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_E1BA4067-9F8F-4748-BAC0-E456BD6A4F63 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello, while reading the code I spotted a couple of typos in smgr.c. Please see = attached. Looks like PgAioTargetData.smgr.skip_fsync is not used anywhere. Best regards, Sergey Shinderuk https://postgrespro.com/ --Apple-Mail=_E1BA4067-9F8F-4748-BAC0-E456BD6A4F63 Content-Disposition: attachment; filename=typos-in-smgr.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="typos-in-smgr.diff" Content-Transfer-Encoding: 7bit diff --git a/src/backend/storage/smgr/smgr.c b/src/backend/storage/smgr/smgr.c index 5391640d861..0b522a49564 100644 --- a/src/backend/storage/smgr/smgr.c +++ b/src/backend/storage/smgr/smgr.c @@ -784,7 +784,7 @@ smgrstartreadv(PgAioHandle *ioh, * fsync the relation, so we needn't bother. Temporary relations also * do not require fsync. * - * If more than one block is intended to be read, callers need to use + * If more than one block is intended to be written, callers need to use * smgrmaxcombine() to check how many blocks can be combined into one IO. */ void @@ -1053,7 +1053,7 @@ pgaio_io_set_target_smgr(PgAioHandle *ioh, sd->smgr.nblocks = nblocks; sd->smgr.is_temp = SmgrIsTemp(smgr); /* Temp relations should never be fsync'd */ - sd->smgr.skip_fsync = skip_fsync && !SmgrIsTemp(smgr); + sd->smgr.skip_fsync = skip_fsync || SmgrIsTemp(smgr); } /* --Apple-Mail=_E1BA4067-9F8F-4748-BAC0-E456BD6A4F63--