Re: why do we have rd_istemp?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: why do we have rd_istemp?
Дата
Msg-id 18590.1275336732@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: why do we have rd_istemp?  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Tom Lane wrote:
>> Robert Haas <robertmhaas@gmail.com> writes:
>>> Given "Relation rel", it looks to me like rel->rd_rel->relistemp will
>>> always give the same answer as rel->rd_istemp.  So why have both?
>> 
>> Might be historical --- relistemp is pretty new.

> Is this a TODO or something we want to clean up?

Doesn't strike me that it's worth the amount of code that would have to
change.  rd_istemp is known in a lot of places.  Replacing it with a
double indirection doesn't seem attractive anyway.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: bitmap-index-scan faster than seq-scan on full-table-scan (gin index)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unexpected page allocation behavior on insert-only tables