pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: In bootstrap mode, don't allow the creation of files if they don
Date: Mon, 28 Jan 2019 02:29:29 +0000
Message-ID: <E1gnwfx-0002nt-34@gemulon.postgresql.org> (raw)

In bootstrap mode, don't allow the creation of files if they don't already
exist.

In commit's b9d01fe288 and 3908473c80, we have added some code where we
allowed the creation of files during mdopen even if they didn't exist
during the bootstrap mode.  The later commit obviates the need for same.

This was harmless code till now but with an upcoming feature where we don't
allow to create FSM for small tables, this will needlessly create FSM
files.

Author: John Naylor
Reviewed-by: Amit Kapila
Discussion: https://www.postgresql.org/message-id/CAJVSVGWvB13PzpbLEecFuGFc5V2fsO736BsdTakPiPAcdMM5tQ@mail.gmail...
            https://www.postgresql.org/message-id/CAA4eK1KsET6sotf+rzOTQfb83pzVEzVhbQi1nxGFYVstVWXUGw@mail.gmail...

Branch
------
master

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

Modified Files
--------------
src/backend/storage/smgr/md.c | 33 ++++++++-------------------------
1 file changed, 8 insertions(+), 25 deletions(-)



Message-ID: <E1gnwfx-0002nt-34@gemulon.postgresql.org>
Permalink:  ../E1gnwfx-0002nt-34@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gnwfx-0002nt-34@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: akapila@postgresql.org
  Subject: Re: pgsql: In bootstrap mode, don't allow the creation of files if they don
  In-Reply-To: <E1gnwfx-0002nt-34@gemulon.postgresql.org>
  References: <E1gnwfx-0002nt-34@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