Re: Datum should be defined outside postgres.h

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Datum should be defined outside postgres.h
Дата
Msg-id 16470.1193326275@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Datum should be defined outside postgres.h  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Ответы Re: Datum should be defined outside postgres.h  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Re: Datum should be defined outside postgres.h  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> Tom Lane wrote:
>> Why in the world is ecpg including either primnodes.h or postgres.h?

> The problem is that ecpg shares parser.c source code and this code 
> includes postgres.h.

ecpg cannot do that.  It would fail if parser.c happened to use anything
that won't compile in frontend, eg elog() or palloc().  It's mere luck
that it's worked for him so far.

Considering that ecpg has its own copy of all of gram.y and scan.l,
sharing parser.c isn't much of a savings anyway.
        regards, tom lane


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

Предыдущее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: Opportunity for a Radical Changes in Database Software
Следующее
От: Zdenek Kotala
Дата:
Сообщение: Re: Datum should be defined outside postgres.h