Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f67cb13

Browse files
MMeentCommitfest Bot
authored and
Commitfest Bot
committed
Expose f_smgr to extensions for manual implementation
There are various reasons why one would want to create their own implementation of a storage manager, among which are block-level compression, encryption and offloading to cold storage. This patch is a first patch that allows extensions to register their own SMgr. Note, however, that this SMgr is not yet used - only the first SMgr to register is used, and this is currently the md.c smgr. Future commits will include facilities to select an SMgr for each tablespace.
1 parent 3943f5c commit f67cb13

File tree

8 files changed

+266
-141
lines changed

8 files changed

+266
-141
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,11 @@ PostmasterMain(int argc, char *argv[])
915915
*/
916916
ApplyLauncherRegister();
917917

918+
/*
919+
* Register built-in managers that are not part of static arrays
920+
*/
921+
register_builtin_dynamic_managers();
922+
918923
/*
919924
* process any libraries that should be preloaded at postmaster start
920925
*/

0 commit comments

Comments
 (0)