pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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-00000000Nqx-0yWW@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
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/67ad2443f78e4a7ddbefe270aa6bcd06925453d1

Modified Files
--------------
src/backend/storage/smgr/smgr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1xU1ZU-00000000Nqx-0yWW@gemulon.postgresql.org>
Permalink:  ../E1xU1ZU-00000000Nqx-0yWW@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xU1ZU-00000000Nqx-0yWW@gemulon.postgresql.org

 · 

reply

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-00000000Nqx-0yWW@gemulon.postgresql.org>
  References: <E1xU1ZU-00000000Nqx-0yWW@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