Re: pgsql: Remove BufFile's isTemp flag.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Remove BufFile's isTemp flag.
Дата
Msg-id 31532.1511128836@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Remove BufFile's isTemp flag.  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: pgsql: Remove BufFile's isTemp flag.  (Andres Freund <andres@anarazel.de>)
Список pgsql-committers
Thomas Munro <thomas.munro@enterprisedb.com> writes:
>> On 2017-11-17 11:23:54 -0500, Tom Lane wrote:
>>> I wonder whether we should then rename BufFileCreateTemp to just
>>> BufFileCreate, since it's no longer possible to have a BufFile that
>>> isn't temp.

> Here's a patch that does those things.  I'm slightly surprised by the
> renaming suggestion though, because it means that an extension that
> uses BufFile will need to know how to select the v10 and v11 function
> name as appropriate.  Would you backpatch redirect support for the new
> name to older versions?

No, but if you're concerned about it, we could maintain API compatibility
for extensions with something like

#define BufFileCreateTemp(interXact) BufFileCreate(interXact)

Typically we expect extensions to provide such workarounds for cases that
concern them ... but since this change is purely cosmetic, maybe it should
be treated differently.
        regards, tom lane


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: pgsql: Remove BufFile's isTemp flag.
Следующее
От: Simon Riggs
Дата:
Сообщение: pgsql: Parameter toast_tuple_target controls TOAST for new rows