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 1wVENa-001nxi-2d for pgsql-admin@arkaria.postgresql.org; Thu, 04 Jun 2026 20:09:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVENZ-008WDP-2i for pgsql-admin@arkaria.postgresql.org; Thu, 04 Jun 2026 20:09:25 +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 1wVENZ-008WDH-1R for pgsql-admin@lists.postgresql.org; Thu, 04 Jun 2026 20:09:25 +0000 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wVENX-000000017nY-30p7 for pgsql-admin@lists.postgresql.org; Thu, 04 Jun 2026 20:09:24 +0000 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-43d26679a6aso796524fac.2 for ; Thu, 04 Jun 2026 13:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780603763; cv=none; d=google.com; s=arc-20240605; b=GEIUjYdyCsBuvN2SrqwBMS2ah7BKT/Pl/xr8CBpnEeJdbvibbATHsuliPjvmSCa/0B dHwk5WBacxuR0y43BgzNRWGVuCH4mi9/ykh4rsFl21h+IYIigNr3RUdm9VzWtissXQix xyETGXu6Z+WY0ucChf/pRh9T8ZDwCIg1RW8ST5zB09iufNahN3avqbCTCR7Wb4loJpzk w8xeYg9dzggtJAmCDs2q24axgfHAn9KutKR0noL43yQM28oeeUzpEiqf8yXEPl0cFxeO TvHbDqAKemj3u/uGKGo+UjEzyOkAoHn1O8kTANvFSXhRnlQ0Y6k4GahKFAHD8i08Iwc5 ug1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=XxWjz34KnT/no4o6+JuqtazDSguXHk7OdZXja+QxT10=; fh=druxZHa2fk4e6MLibibygn9AWWgeaAPo4m8Gpo2MBXU=; b=BnB8NuII6greTkOlC0gR2XTABur6azIYQx6H8LY42FIcL0OlprY/blvd1VejU0d/Qx w01+4cqvk8VX5AsuRO0+ROZ186ym0nVDTNLRCdtHVqphFLdmpk4fa6wJwnqbXpd1Rn/H agiHlnJfWxjboKRxgTE/rgIkk7e/Mxic1ag95r63nj5KsG8DldTo9jXWQ9eDHaaHUUhU Zaps2/Ll4sFOzfTC2+nsyRcNYdaMZ0qVuL+Kb0Txx5hcIlB5p2Jv7QZT8ZNAdasssjL3 Az7UxXMlUaBTXJhiqAk6P9ujH2F4djI/noJLfm0/a8FDiiYQtWjvLGrgvZd1f2bndqBb GM2g==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780603763; x=1781208563; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=XxWjz34KnT/no4o6+JuqtazDSguXHk7OdZXja+QxT10=; b=kjL9Y3tkQr7nIHSlc5JTRmRoTQI6VhUbhRqTqgf5KLJZ5gRmC1kWePKbR+L7nz3Gci u0Rf86aPz3NIE/aMtA8Ihmm7trFrSiFtDY4I+2A7NZdwrcQg5wLVF8GQz77t7N8KttmP NYt7GhnO7O7HA15htbXtwHfj8XCS6nxHXAX+hTxJBVYhssExzpieThVhwk5aboTlqLWZ CG/zWtlHz/xoQ6EBlLwnKlpXuxZ8TiDVO7y5C+KrODmLFBZrj4q/B8SUjlAUmz6+WGdR OuHzUUI2IU1MuNZ08eiKFVvHhUpKH4N56kLvHtMzQzkp3VRZOGuB/fEiOAvCYrVHOeW4 JnOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780603763; x=1781208563; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XxWjz34KnT/no4o6+JuqtazDSguXHk7OdZXja+QxT10=; b=kF9/B2nq0yp5zd3U+ZWUTKF7kiDV9Ei6ACmAFbcz2u9rCgX03vldHBBz4l0QMP9jQ6 PRDYJ7a957IMIQh7N+Vl/0rpYozSEwM4/+AzJt9/HrJCYlpihWS74kDFfGosfBoV/av6 AVuQkxh6uqYqV06Qu+ug9Tdzlws7WkLGhTGin2ONvnfH/80qh00P1igEJMkDrvi59/WA n2ikOLGCeKriYTMP3/jiUjHuLL5wHn0ex7F67/KhKqJQJCD3jBeXUqL6Nyk4fWNehU/x P9wKQSYKaas/rxHyyUigXm/lUci2egWB1PXRIbLd8B9vc8U0b3653gZ5h2V+mlWfcSnN Steg== X-Gm-Message-State: AOJu0Yzb5+7rZaTgIUoR+WWtz5ARJDRHkuo7ko+JDzH0w7UsW/bEqob1 7CEWxDBGSiqwkcu35laup3FJ+VNm1Lm1H1In9LObdi4m9XdUK4P/aFZToMQZlCO0jsxVCPgE57l BQmbRzgvPLvPm9c17lxbBjJlrQMQQ7Z42uw== X-Gm-Gg: Acq92OHBDOz9Bf1hL4TjOrsjIUEnAV8vMd3/Xb0h52/sEO9KvsHyTKEOCTysPyuysqm tYw31wOsMEg4sdeHUuyX8isyqeHHsgZ7x8/QQcsbTdHa3J/XuUmMDpZlVap18WZsfCxQQKrUzxa 52LLCqPEMX24WuKc84DPYyY+ZVLizzTBmLiMgCLJI6c8Ld1B9M4QFgoyO40SCdYXr7Tl9ZfS/k6 L7HEsSfnNvgkYBsofXDULxXPjj7YcEiM5tbWqRxbnt4gr6jfpYkngbA0k61g1aIfcwUYNlJ2GPD ld7c8pe3nGJrdQ98pbQ= X-Received: by 2002:a05:6871:3515:b0:43d:1e4b:d7ac with SMTP id 586e51a60fabf-4413d866460mr269405fac.29.1780603762670; Thu, 04 Jun 2026 13:09:22 -0700 (PDT) MIME-Version: 1.0 References: <3441657.1780603341@sss.pgh.pa.us> In-Reply-To: <3441657.1780603341@sss.pgh.pa.us> From: Ron Johnson Date: Thu, 4 Jun 2026 16:09:11 -0400 X-Gm-Features: AVVi8CdfAkTY4RD1WdFHs-0dFENSM7c_s-G_tBhufzDy4_3UWzMBZPzcsuGrzxE Message-ID: Subject: Re: Howto tell pg_ctl to use a non-default directory for config files To: Pgsql-admin Content-Type: multipart/alternative; boundary="000000000000c282190653731e10" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c282190653731e10 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 4, 2026 at 4:02=E2=80=AFPM Tom Lane wrote: > Michael Grimm writes: > > Question: > > Is there a way to tell PostgreSQL to look for config files in e.g. > /usr/local/etc/postgres, where normally all config files reside in FreeBS= D? > [2] > > 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? --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000c282190653731e10 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Jun 4, 2026 at 4:02=E2=80=AFPM To= m Lane <tgl@sss.pgh.pa.us> w= rote:
Michael Grimm <trashcan@ellael.org> writes:
> Question:
> Is there a way to tell PostgreSQL to look for config files in e.g. /us= r/local/etc/postgres, where normally all config files reside in FreeBSD? [2= ]

Typically you would say "pg_ctl -D /usr/local/etc/postgres" to po= int
it at the config file.=C2=A0 Then you would need the config file to include=
data_directory and perhaps other settings pointing to wherever the
actual data files are.
=C2=A0
Is it standard= to point PGDATA to an etc directory instead of to the "data" dir= ectory?

--=
Dea= th to <Redacted>, and butter sauce.
Don't boil me, I'm st= ill alive.
<Redacted> lobster!
--000000000000c282190653731e10--