Re: building pg_dump doesn't work

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: building pg_dump doesn't work
Дата
Msg-id 20090305131208.GA4087@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: building pg_dump doesn't work  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: building pg_dump doesn't work
Re: building pg_dump doesn't work
Список pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> >> Seems doable.
>
> > Attached.
>
> The TWO_MEMBER_SCANKEYWORD business seems a bit dangerous --- if the
> header file is read without having #defined that correctly, bad things
> will happen.  It might be better to leave that out, always define the
> struct the same, and just have pg_dump define PG_KEYWORD to fill the
> value field with zero.  Given alignment considerations, you're not
> saving any space by omitting the field anyhow.

Fixed.

I also added #include type.h to the ecpg keywords.c file, which means we
don't need to redefine YYSTYPE at all on any of the three keywords.c
file.  Looks cleaner overall.

Hopefully this is the last version of this patch.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Вложения

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Make SIGHUP less painful if pg_hba.conf is not readable
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: building pg_dump doesn't work