Re: Drop type "smgr"? - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Drop type "smgr"?
Date
Msg-id CA+hUKG+VeoBJkonRjUeFpHpBkw7ZY5j3rc8FJzcDfxCytpk7ng@mail.gmail.com
Whole thread Raw
In response to Re: Drop type "smgr"?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Drop type "smgr"?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Feb 28, 2019 at 7:08 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Thomas Munro <thomas.munro@gmail.com> writes:
> > Motivation: A couple of projects propose to add new smgr
> > implementations alongside md.c in order to use bufmgr.c for more kinds
> > of files, but it seems entirely bogus to extend the unused smgr type
> > to cover those.
>
> I agree that smgrtype as it stands is pretty pointless, but what
> will we be using instead to get to those other implementations?

Our current thinking is that smgropen() should know how to map a small
number of special database OIDs to different smgr implementations
(where currently it hard-codes smgr_which = 0).  For example there
would be a pseudo-database for undo logs, and another for the SLRUs
that Shawn Debnath and others have been proposing to move into shared
buffers.  Another idea would be to widen the buffer tag to include the
selector.  Unlike the ancestral code, it wouldn't need to appear in
catalogs or ever be seen or typed in by users so there still wouldn't
be a use for this type.

-- 
Thomas Munro
https://enterprisedb.com


pgsql-hackers by date:

Previous
From: "Kuroda, Hayato"
Date:
Subject: RE: Prevent extension creation in temporary schemas
Next
From: Tom Lane
Date:
Subject: Re: POC: converting Lists into arrays