Removing #include "postgres.h" from a couple of headers

Thomas Munro <thomas.munro@enterprisedb.com>

From: Thomas Munro <thomas.munro@enterprisedb.com>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2017-03-08T08:55:08Z
Lists: pgsql-hackers

Attachments

Hi,

Over in another thread it was pointed out that a patch I submitted
broke a project rule by including "postgres.h" in a header.  Here is a
patch to remove it from dsa.h where I made the same mistake, and also
a case I found in bufmask.h by grepping.

There are also instances in regcustom.h and snowball's header.h -- are
those special cases?

-- 
Thomas Munro
http://www.enterprisedb.com

Commits

  1. Fix inclusions of c.h from .h files.

  2. Fix inclusions of postgres_fe.h from .h files.

  3. Bring plpgsql into line with header inclusion policy.

  4. Document intentional violations of header inclusion policy.

  5. Remove inclusion of postgres.h from a few header files.