pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Prevent compilation of frontend-only files in src/common/ with b
Date: Tue, 30 Jun 2020 04:26:27 +0000
Message-ID: <E1jq7ql-0005B2-No@gemulon.postgresql.org> (raw)

Prevent compilation of frontend-only files in src/common/ with backend

Any frontend-only file of src/common/ should include a protection to
prevent such code to be included in the backend compilation.
fe_memutils.c and restricted_token.c have been doing that, while
file_utils.c (since bf5bb2e) and logging.c (since fc9a62a) forgot it.

Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/20200625080757.GI130132@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/324435eb14e4f41cd430f96c9b13ad9b160e45e4

Modified Files
--------------
src/common/file_utils.c | 5 +++++
src/common/logging.c    | 5 +++++
2 files changed, 10 insertions(+)



Message-ID: <E1jq7ql-0005B2-No@gemulon.postgresql.org>
Permalink:  ../E1jq7ql-0005B2-No@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jq7ql-0005B2-No@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Prevent compilation of frontend-only files in src/common/ with b
  In-Reply-To: <E1jq7ql-0005B2-No@gemulon.postgresql.org>
  References: <E1jq7ql-0005B2-No@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox