Re: Question regarding the database page layout.

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Question regarding the database page layout.
Дата
Msg-id 20080903020335.GV12610@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Question regarding the database page layout.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane escribió:
> Gregory Stark <stark@enterprisedb.com> writes:
> > Tom Lane <tgl@sss.pgh.pa.us> writes:
> >> BTW, there are at least two copies of that code to be changed.  I'd
> >> suggest grepping for assignments to t_hoff to be sure there aren't more.

Besides heap_form_tuple and heap_formtuple, we have
heap_form_minimal_tuple
head_addheader

(it's also assigned to in heap_xlog_insert and heap_xlog_update, but I'm
not sure they need anything changed)

> > I did send in a patch a while ago to get rid of the old HeapFormTuple() and
> > friends.
> 
> I remember discussing that idea, but I don't recall seeing an actual
> patch?  It would have to be quite large because of the number of places
> using the old way.  I'd also be a bit worried about breaking add-on
> modules to little purpose ...

The good news is that it's easy to convert each caller (of which there
are 57 currently BTW) to the new form; and we could just have
heap_formtuple be a wrapper over heap_form_tuple, to reduce breakage.
Maybe add a #warning about deprecation in there for a release or two.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: "Brendan Jurd"
Дата:
Сообщение: Re: What is the use of the CommitFestBlank template?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [gsmith@gregsmith.com: Re: [patch] GUC source file and line number]