Re: Fix pg_dump dependency on postgres.h

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Fix pg_dump dependency on postgres.h
Date: 2007-11-06 23:49:06
Message-ID: 20071106234906.GK8635@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Zdenek Kotala wrote:
> Alvaro Herrera wrote:

>>> 1) I removed sugar word from postgres.h and put them closer to consumer
>>> :-). I created include/catalog/genbki.h which contains sugar words -
>>> macros for correct catalog data processing. All catalogs file now include
>>> this header.
>> What's the point of this? I don't see what difference it makes from the
>> current situation. In particular I don't see it being included in any
>> new place.

> pg_dump.c needs some macros which are defined into catalogs header. But it
> should not include postgres.h where is defined "sugar words" for catalog
> data. It is the reason why I moved these macros to the separate header and
> include this header from all catalog header.

Ah, the part that I was missing was that the catalog headers were being
included by pg_dump.c.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2007-11-07 00:52:47 Re: EquivalenceClasses vs volatile functions
Previous Message Jeff Davis 2007-11-06 23:17:54 Re: Beta2 crash / create type + tsearch2

Browse pgsql-patches by date

  From Date Subject
Next Message Henry B. Hotz 2007-11-07 02:10:12 Re: krb_match_realm
Previous Message Pavel Stehule 2007-11-06 22:13:13 fulltext parser strange behave