Re: Refactoring xlogutils.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Refactoring xlogutils.c
Дата
Msg-id 22291.1213123753@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Refactoring xlogutils.c  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Ответы Re: Refactoring xlogutils.c  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Список pgsql-patches
"Heikki Linnakangas" <heikki@enterprisedb.com> writes:
> Attached is an updated version of my patch to refactor the
> XLogOpenRelation/XLogReadBuffer interface, in preparation for the
> relation forks patch, and subsequently the FSM rewrite patch.

The code motion in md.c looks fairly bogus; was that a copy-and-paste
error?

Otherwise it looks pretty sane, but I have one stylistic gripe:
I'm dubious about your willingness to assume that pfree() is enough for
getting rid of a fake relcache entry.  Relcache entries are complex
beasts and it may not continue to work to do that.  It's also possible
that we'd have additional resources attached to them someday.  So
I think it'd be worth having a FreeFakeRelcacheEntry() routine to
localize the knowledge of how to get rid of them.

            regards, tom lane

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

Предыдущее
От: "Heikki Linnakangas"
Дата:
Сообщение: Re: \timing on/off
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Minor pedantry for "help" text