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

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Removing #include "postgres.h" from a couple of headers
Date: 2017-03-08 08:55:08
Message-ID: CAEepm=2zCoeq3QxVwhS5DFeUh=yU6z81pbWMgfOB8OzyiBwxzw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
remove-postgres.h-from-headers.patch application/octet-stream 596 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2017-03-08 08:58:06 Re: Removing #include "postgres.h" from a couple of headers
Previous Message Amit Langote 2017-03-08 08:10:21 Re: contrib modules and relkind check