pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Update buffile.h/.c comments for removal of non-temp option.
Date: Sat, 25 Nov 2017 18:19:47 +0000
Message-ID: <E1eIf3L-0005L1-SI@gemulon.postgresql.org> (raw)

Update buffile.h/.c comments for removal of non-temp option.

Commit 11e264517 removed BufFile's isTemp flag, thereby eliminating
the possibility of resurrecting BufFileCreate().  But it left that
function in place, as well as a bunch of comments describing how things
worked for the non-temp-file case.  At best, that's now a source of
confusion.  So remove the long-since-commented-out function and change
relevant comments.

I (tgl) wanted to rename BufFileCreateTemp() to BufFileCreate(), but
that seems not to be the consensus position, so leave it as-is.

In passing, fix commit f0828b2fc's failure to update BufFileSeek's
comment to match the change of its argument type from long to off_t.
(I think that might actually have been intentional at the time, but
now that 64-bit off_t is nearly universal, it looks anachronistic.)

Thomas Munro and Tom Lane

Discussion: https://postgr.es/m/E1eFVyl-0008J1-RO@gemulon.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ab97aaac8f058f2e16ef08655d185db20bc241d3

Modified Files
--------------
src/backend/storage/file/buffile.c | 38 +++++++++-----------------------------
src/include/storage/buffile.h      |  2 +-
2 files changed, 10 insertions(+), 30 deletions(-)



Message-ID: <E1eIf3L-0005L1-SI@gemulon.postgresql.org>
Permalink:  ../E1eIf3L-0005L1-SI@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eIf3L-0005L1-SI@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Update buffile.h/.c comments for removal of non-temp option.
  In-Reply-To: <E1eIf3L-0005L1-SI@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