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: Move code related to configuration files in directories to new f
Date: Mon, 07 Nov 2022 03:34:58 +0000
Message-ID: <E1orsuY-000mX0-SY@gemulon.postgresql.org> (raw)

Move code related to configuration files in directories to new file

The code in charge of listing and classifying a set of configuration
files in a directory was located in guc-file.l, being used currently for
GUCs under "include_dir".  This code is planned to be used for an
upcoming feature able to include configuration files for ident and HBA
files from a directory, similarly to GUCs.  In both cases, the file
names, suffixed by ".conf", have to be ordered alphabetically.  This
logic is moved to a new file, called conffiles.c, so as it is easier to
share this facility between GUCs and the HBA/ident parsing logic.

Author: Julien Rouhaud, Michael Paquier
Discussion: https://postgr.es/m/Y2IgaH5YzIq2b+iR@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a1a7bb8f16cd5529d76850c85625039ad7aa348a

Modified Files
--------------
src/backend/utils/misc/Makefile    |   1 +
src/backend/utils/misc/conffiles.c | 164 +++++++++++++++++++++++++++++++++++++
src/backend/utils/misc/guc-file.l  | 157 ++++-------------------------------
src/backend/utils/misc/meson.build |   1 +
src/include/utils/conffiles.h      |  23 ++++++
5 files changed, 204 insertions(+), 142 deletions(-)



Message-ID: <E1orsuY-000mX0-SY@gemulon.postgresql.org>
Permalink:  ../E1orsuY-000mX0-SY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1orsuY-000mX0-SY@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: Move code related to configuration files in directories to new f
  In-Reply-To: <E1orsuY-000mX0-SY@gemulon.postgresql.org>
  References: <E1orsuY-000mX0-SY@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