Re: Header File cleanup. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Header File cleanup.
Date
Msg-id 746.959666768@sss.pgh.pa.us
Whole thread Raw
In response to Header File cleanup.  (Lamar Owen <lamar.owen@wgcr.org>)
List pgsql-hackers
Lamar Owen <lamar.owen@wgcr.org> writes:
> Enlighten me:
> Why use #include "header.h" over #include <header.h> for exported interface
> header files?

As Marc mentioned, we've gone round on that before.  I think the bias
for using "" is largely because it's convenient (or even necessary,
in some scenarios) for building Postgres itself.  I am not aware of
any compelling arguments why <> would be better from the perspective
of a client app trying to use already-installed Postgres header files
--- if you know some reasons, let's hear 'em!

I'm prepared to believe that the client's-eye view might favor something
different from the developer's-eye view.  I think you were suggesting
that we might want to replace "" by <> in installed copies of the
headers.  I'd support that if it were shown necessary, but I'd want to
be shown first...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Full text indexing preformance! (long)
Next
From: Peter Mount
Date:
Subject: RE: [INTERFACES] Postgresql 7.0 JDBC exceptions - broken connecti ons ?