Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wVETE-001o2e-0Z for pgsql-admin@arkaria.postgresql.org; Thu, 04 Jun 2026 20:15:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVETD-008aE3-0D for pgsql-admin@arkaria.postgresql.org; Thu, 04 Jun 2026 20:15:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wVETC-008aDt-2G for pgsql-admin@lists.postgresql.org; Thu, 04 Jun 2026 20:15:14 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wVETA-000000017qG-3xCb for pgsql-admin@lists.postgresql.org; Thu, 04 Jun 2026 20:15:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 654KFBwV3442637; Thu, 4 Jun 2026 16:15:11 -0400 From: Tom Lane To: Ron Johnson cc: Pgsql-admin Subject: Re: Howto tell pg_ctl to use a non-default directory for config files In-reply-to: References: <3441657.1780603341@sss.pgh.pa.us> Comments: In-reply-to Ron Johnson message dated "Thu, 04 Jun 2026 16:09:11 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3442635.1780604111.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 04 Jun 2026 16:15:11 -0400 Message-ID: <3442636.1780604111@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron Johnson writes: > On Thu, Jun 4, 2026 at 4:02 PM Tom Lane wrote: >> Typically you would say "pg_ctl -D /usr/local/etc/postgres" to point >> it at the config file. Then you would need the config file to include >> data_directory and perhaps other settings pointing to wherever the >> actual data files are. > Is it standard to point PGDATA to an etc directory instead of to the "data" > directory? It is if you want the server's configuration files to be separate from the data. regards, tom lane