Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aMSyO-0000Uf-C3 for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Jan 2016 04:05:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aMSyN-0000kU-V3 for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Jan 2016 04:05:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aMD27-0002uM-Mj for pgsql-bugs@postgresql.org; Thu, 21 Jan 2016 11:04:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aMD23-0005nr-Vl for pgsql-bugs@postgresql.org; Thu, 21 Jan 2016 11:04:06 +0000 MIME-Version: 1.0 Subject: BUG #13879: include_dir directive not working To: pgsql-bugs@postgresql.org From: andreas.dewes@7scientists.com Date: Thu, 21 Jan 2016 11:03:11 +0000 Message-ID: <20160121110311.2739.4827@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13879 Logged by: Andreas Dewes Email address: andreas.dewes@7scientists.com PostgreSQL version: 9.3.10 Operating system: Ubuntu 14.04 LTS Description: It seems that the `include_dir` directive does not work at all in this Postgres version. I tested this with a `postgresql.conf` file that looks like this: include_dir 'conf.d' The subdirectory `conf.d` (which sits in the same directory as the `postgresql.conf` file) contains the files `001_base.conf`, `002_performance.conf`, `003_replication.conf`. When I run `pg_lsclusters` (or any other Postgres command), I get `invalid data directory error`. It therefore seems that the configuration files in the `conf.d` directory do not get included at all. If I replace the `include_dir` directive with three explicit `include 'conf.d/001_base.conf'`, ... directives everything works as expected. I also checked the configuration files for errors to exclude that the loading fails for that reason, they seem to be fine though (I also removed the 002_ and 003_ files for testing). The log file doesn't reveal any useful information either. Using the absolute path name of the `conf.d` directory in the include_dir statement does not help either. Directory and file permissions are correctly set and the names of the configuration files all end with `.conf`. Any ideas? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs