From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix setting skip_fsync on temp tables
Date: Thu, 19 Nov 2026 12:49:01 +0000
Message-ID: <E1xU1ZU-00000000Nqv-0tIG@gemulon.postgresql.org> (raw)
Fix setting skip_fsync on temp tables
The intention was to always skip fsync for temporary relations, but
the condition was inverted, so skip_fsync was set to false for
temporary relations. This has no user-visible effect at the moment,
because the skip_fsync field isn't used anywhere (only reads go
through AIO currently).
While here, fix a copy-pasto in the smgrwritev() comment, which said
"read" where it meant "written".
Author: Sergey Shinderuk <s.shinderuk@postgrespro.ru>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Yuefei Shi <shiyuefei1004@gmail.com>
Discussion: https://www.postgresql.org/message-id/A96F1990-57F8-4566-B55D-43D6087EE313@postgrespro.ru
Backpatch-through: 18
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/61f6021b110d4fa781a212906bd6eba62abf3ca6
Modified Files
--------------
src/backend/storage/smgr/smgr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Fix setting skip_fsync on temp tables
In-Reply-To: <E1xU1ZU-00000000Nqv-0tIG@gemulon.postgresql.org>
References: <E1xU1ZU-00000000Nqv-0tIG@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox