Re: Inconsistencies around defining FRONTEND

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Inconsistencies around defining FRONTEND
Дата
Msg-id CA+Tgmob3Yb_6qQ4PqT9S3cX4KRT6whA3wapZdt3M13CA7Beq7w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Inconsistencies around defining FRONTEND  (Andres Freund <andres@anarazel.de>)
Ответы Re: Inconsistencies around defining FRONTEND
Список pgsql-hackers
On Tue, Aug 23, 2022 at 9:55 PM Andres Freund <andres@anarazel.de> wrote:
> We could, if we make xlogreader.c and the rmgrdesc routines built as part of
> src/common. I don't really see how otherwise.

After a little bit of study, I agree.

It looks to me like -DFRONTEND can be removed from
src/fe_utils/Makefile and probably also src/common/unicode/Makefile
without changing anything else, because the C files in those
directories seem to be frontend-only and they already include
"postgres_fe.h". I think we should go ahead and do that, and also
apply the patch I posted yesterday with whatever bikeshedding seems
appropriate.

It doesn't really seem like we have a plausible alternative to the
current system for src/common or src/port.

pg_rewind and pg_waldump seem to need the xlogreader code moved to
src/common, as Andres proposes. I'm not volunteering to tackle that
right now but I think it might be a good thing to do sometime.

--
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Avoid unecessary MemSet call (src/backend/utils/cache/relcache.c)
Следующее
От: Dave Page
Дата:
Сообщение: Re: Tracking last scan time