Re: Datum should be defined outside postgres.h - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Datum should be defined outside postgres.h
Date
Msg-id 24628.1193763676@sss.pgh.pa.us
Whole thread Raw
In response to Re: Datum should be defined outside postgres.h  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: Datum should be defined outside postgres.h
List pgsql-hackers
Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> My idea is to put functions declaration int pg_xxx.h and structure
> declaration in pg_xxx_def.h. I'm not sure if split DATA into separate
> header is good idea, but if yes then pg_xxx_data.h should be good name
> for it (it seems that pg_dump needs only defines).

That seems far more invasive than is justified, as it will essentially
force touching every file that includes any catalog header.  I think
the vast majority are including for the struct definitions, and so the
structs should stay where they are.  Moving the DATA lines is a pretty
bad idea as well, since we'd also have to move the corresponding OID
macro #defines (in examples such as pg_type.h), leading to yet more
pointless #include-thrashing.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: install-strip causes dyld errors on OS X
Next
From: "Joshua D. Drake"
Date:
Subject: Re: install-strip causes dyld errors on OS X