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 1klbIa-0002GE-Ri for pgsql-admin@arkaria.postgresql.org; Sat, 05 Dec 2020 17:24:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1klbIZ-00073F-Qe for pgsql-admin@arkaria.postgresql.org; Sat, 05 Dec 2020 17:24:43 +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 1klbIZ-000738-Im for pgsql-admin@lists.postgresql.org; Sat, 05 Dec 2020 17:24:43 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klbIV-0000YF-Bl for pgsql-admin@postgresql.org; Sat, 05 Dec 2020 17:24:42 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 13A809FF08; Sat, 5 Dec 2020 17:24:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hbPJULziTZqP; Sat, 5 Dec 2020 17:24:36 +0000 (UTC) Received: from [192.168.2.16] (unknown [8.42.68.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 7231F9FFAE; Sat, 5 Dec 2020 17:24:35 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: unbale to use pg_ctl in Windows Cmd. From: Scott Ribe In-Reply-To: Date: Sat, 5 Dec 2020 10:24:30 -0700 Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <7649CBF6-6384-438A-BA5C-1ADA40A980BD@elevated-dev.com> References: To: mark armon <1994hejian@gmail.com> X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Dec 5, 2020, at 10:02 AM, mark armon <1994hejian@gmail.com> wrote: >=20 > I don't know where the pg_data directory. You will have to find it to use pg_ctl > So I set the C:\Users\Think\Desktop\postgres\data as user variable and = system variable In windows setting.=20 Doesn't do any good if that's not where the data directory is.=