Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jegzg-0006KS-Bo for pgsql-general@arkaria.postgresql.org; Fri, 29 May 2020 15:32:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jegzf-0004bp-8p for pgsql-general@arkaria.postgresql.org; Fri, 29 May 2020 15:32:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jegzf-0004bg-0L for pgsql-general@lists.postgresql.org; Fri, 29 May 2020 15:32:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jegzc-0001dX-Ib for pgsql-general@lists.postgresql.org; Fri, 29 May 2020 15:32:22 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 04TFWE7w005877; Fri, 29 May 2020 11:32:14 -0400 From: Tom Lane To: Tanja Savic cc: "pgsql-general@lists.postgresql.org" Subject: Re: pg_ctl can't start db server In-reply-to: References: Comments: In-reply-to Tanja Savic message dated "Fri, 29 May 2020 15:19:42 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10526.1590766334.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 29 May 2020 11:32:14 -0400 Message-ID: <10527.1590766334@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tanja Savic writes: > The configuration file path is /etc/postgresql/12/main/ postgresql.conf = and it is configured in /var/lib/postgresql/12/main/postmaster.opts: > "/usr/lib/postgresql/12/bin/postgres "-D" "/var/lib/postgresql/12/main" = "-c" "config_file=3D/etc/postgresql/12/main/postgresql.conf" > Why does pg_ctl complains about the postgresql.conf path? I don't remember the exact interaction between -D and an explicit config_file setting, but evidently it's not working the way you wish. See https://www.postgresql.org/docs/current/runtime-config-file-locations.html which suggests that you should use -D to point at the directory where postgresql.conf is, and set the data directory with a parameter within postgresql.conf. (Note that pg_ctl probably only understands this way, even though theoretically the postmaster can deal with other approaches to setting up an external config file.) regards, tom lane