Rename ExtendedBufferWhat in 16?

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Rename ExtendedBufferWhat in 16?
Дата
Msg-id CA+hUKG+6tLD2BhpRWycEoti6LVLyQq457UL4ticP5xd8LqHySA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Rename ExtendedBufferWhat in 16?
Список pgsql-hackers
Hi

Commit 31966b15 invented a way for functions dealing with relation
extension to accept a Relation in online code and an SMgrRelation in
recovery code (instead of using the earlier FakeRelcacheEntry
concept).  It seems highly likely that future new bufmgr.c interfaces
will face the same problem, and need to do something similar.  Let's
generalise the names so that each interface doesn't have to re-invent
the wheel?  ExtendedBufferWhat is also just not a beautiful name.  How
about BufferedObjectSelector?  That name leads to macros BOS_SMGR()
and BOS_REL().  Could also be BufMgrObject/BMO, ... etc etc.

This is from a patch-set that I'm about to propose for 17, which needs
one of these too, hence desire to generalise.  But if we rename them
in 17, then AM authors, who are likely to discover and make use of
this interface, would have to use different names for 16 and 17.

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: run pgindent on a regular basis / scripted manner
Следующее
От: Andres Freund
Дата:
Сообщение: Re: run pgindent on a regular basis / scripted manner