diff options
| author | Thomas Munro | 2019-07-17 00:14:08 +0000 |
|---|---|---|
| committer | Thomas Munro | 2019-07-17 03:00:22 +0000 |
| commit | dfd0121dc73aab491bcaad2d2b7a2a749389add8 (patch) | |
| tree | 2000afe3a63a42cfa506055382a9161ace4ccf2d /src/include | |
| parent | 3093eb2b83645a083a47ea62769ffd89e31f3664 (diff) | |
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
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/storage/md.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/storage/md.h b/src/include/storage/md.h index df24b931613..c0f05e23ff9 100644 --- a/src/include/storage/md.h +++ b/src/include/storage/md.h @@ -21,6 +21,7 @@ /* md storage manager functionality */ extern void mdinit(void); +extern void mdopen(SMgrRelation reln); extern void mdclose(SMgrRelation reln, ForkNumber forknum); extern void mdcreate(SMgrRelation reln, ForkNumber forknum, bool isRedo); extern bool mdexists(SMgrRelation reln, ForkNumber forknum); |
