Re: Preliminary patch for FRONTEND

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Preliminary patch for FRONTEND
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE475DD2@algol.sollentuna.se
обсуждение исходный текст
Ответ на Preliminary patch for FRONTEND  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Preliminary patch for FRONTEND  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
> > The following patch addresses this issue by making libpgport usable
> > unchanged by client applications, and makes a special
> server version
> > for the backend.
>
> This raises some alarm bells for me.  Why does a "port
> support" library need to distinguish whether it is running in
> frontend or backend?

Just from the problems I've seen with several modules - ereport().
Several functions use ereport() if !FRONTEND and something else if
FRONTEND.

I've seen this problem several times when trying to compile things "out
of sync". The main issue is that the port stuff behave differently,
certainly. I originally thought the deal was that anything that relied
on backend stuff would go in backend/port, but there are (and has been
since before I started looking at it) several files in /port/ taht rely
heavily on functions and variables in the backend.

//Magnus

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Cosmetic changes
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Preliminary patch for FRONTEND