Re: Adding SMGR discriminator to buffer tags

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: Adding SMGR discriminator to buffer tags
Дата
Msg-id CA+hUKGLf9aO8oxkbYQJbWJn=Wx+q-jS5_7Wp4Mxas49_R34nZA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Adding SMGR discriminator to buffer tags  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Adding SMGR discriminator to buffer tags  (Thomas Munro <thomas.munro@gmail.com>)
Re: Adding SMGR discriminator to buffer tags  (Shawn Debnath <sdn@amazon.com>)
Список pgsql-hackers
On Tue, Jul 16, 2019 at 1:49 AM Robert Haas <robertmhaas@gmail.com> wrote:
> [long form -1]
>
> But how about just using a magic database OID?

This patch was just an experiment based on discussion here:

https://www.postgresql.org/message-id/flat/CA%2BhUKG%2BDE0mmiBZMtZyvwWtgv1sZCniSVhXYsXkvJ_Wo%2B83vvw%40mail.gmail.com

I learned some things.  The main one is that you don't just need space
the buffer tag (which has plenty of spare bits) but also in WAL block
references, and that does seem to be a strike against the idea.  I
don't want lack of agreement here to hold up other work.  So here's
what I propose:

I'll go and commit the simple refactoring bits of this work, which
just move some stuff belonging to md.c out of smgr.c (see attached).
I'll go back to using a magic database OID for the undo log patch set
for now.  We could always reconsider the SMGR discriminator later.
For now I'm not going to consider this question a blocker for the
later undo code when it's eventually ready for commit.

-- 
Thomas Munro
https://enterprisedb.com

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Use PageIndexTupleOverwrite() within nbtsort.c
Следующее
От: "Karl O. Pinc"
Дата:
Сообщение: Re: Patch to document base64 encoding