From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move some md.c-specific logic from smgr.c to md.c.
Date: Wed, 17 Jul 2019 03:01:04 +0000
Message-ID: <E1hnaBk-00085B-Dr@gemulon.postgresql.org> (raw)
Move some md.c-specific logic from smgr.c to md.c.
Potential future SMGR implementations may not want to create
tablespace directories when creating an SMGR relation. Move that
logic to mdcreate(). Move the initialization of md-specific
data structures from smgropen() to a new callback mdopen().
Author: Thomas Munro
Reviewed-by: Shawn Debnath (as part of an earlier patch set)
Discussion: https://postgr.es/m/CA%2BhUKG%2BOZqOiOuDm5tC5DyQZtJ3FH4%2BFSVMqtdC4P1atpJ%2Bqhg%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/dfd0121dc73aab491bcaad2d2b7a2a749389add8
Modified Files
--------------
src/backend/storage/smgr/md.c | 37 +++++++++++++++++++++++++++++++------
src/backend/storage/smgr/smgr.c | 33 ++++-----------------------------
src/include/storage/md.h | 1 +
3 files changed, 36 insertions(+), 35 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: tmunro@postgresql.org
Subject: Re: pgsql: Move some md.c-specific logic from smgr.c to md.c.
In-Reply-To: <E1hnaBk-00085B-Dr@gemulon.postgresql.org>
References: <E1hnaBk-00085B-Dr@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