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 1klfIh-0000fA-TO for pgsql-admin@arkaria.postgresql.org; Sat, 05 Dec 2020 21:41:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1klfIg-0007SC-Rd for pgsql-admin@arkaria.postgresql.org; Sat, 05 Dec 2020 21:41:06 +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 1klfIg-0007S1-IL for pgsql-admin@lists.postgresql.org; Sat, 05 Dec 2020 21:41:06 +0000 Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1klfIa-0002RP-UI for pgsql-admin@lists.postgresql.org; Sat, 05 Dec 2020 21:41:05 +0000 Received: by mail-ej1-x643.google.com with SMTP id n26so13912132eju.6 for ; Sat, 05 Dec 2020 13:41:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=b26snloir6vowLHcmjnb+yWh5M5vj2DVNiiKOcB+9fk=; b=M+iNqMpZDNrvPY0Xs7QcgfxBYg1g3d/ZDJV9+UCk2uwpaIlJ/cMky7FD9EDtih8c+h 213QQEW2zPUx0rmnoZ2i9FCjZ7DtL77C6dGJjR0Hgh+1KB/XbqG+PabO3a1hPIksttbh uKHSZ7rKF7Dq9VglwJMVZnNfwPEq5zqPTBbHu3KOfHFPY24uEiiboVrujf0rs20gX37h QuZQCNzc1AGMY2isisndSP0K+XYKm+PEA87bJOFbNAI/OAT+WuKXXX/DYq/0hej9o59M rEGwe+zaizzm6pm0ArpI74UsgNzMyANJReFPEJ4spfioFAxC0pWmAD6cTu2lu6zkw22f FrUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=b26snloir6vowLHcmjnb+yWh5M5vj2DVNiiKOcB+9fk=; b=Z/VkNAEfbVR/+cngOjkxGuoh0Wwd4SWHFtxBtXz3HH6m7EqtlJR3pVT7lJm06jTLym c6d+jO807yOFo60xmuY+5EUrOG6aOshulPgMfuT/bZbver9McYLJfHfnquoiQ7WwVfI1 J28wDeg5qFFD1F9Lxzq67Bf/F/7hBesDD0rm8VI0OW5HSr5emrun3GwfXJQWSyks0yGF o0Be6ewahluuUK9eI6yzaN7xe4QJDcPhUuRCyO2iPX/qAbOVdo+M5u5omVZ4fgrPyLBM 72ovr2dImgj/tLdSKKCzap72ERVIOM44Lxkf1yl7/uDBOxgVq2lG6o0+ZgkmeWN8Y8cu ExgQ== X-Gm-Message-State: AOAM53139N/ohbiE2dTJ93cLfbkTfUVKJ3/wUqjC/2SzsjdNXPfim5Sz vigWGENe66H8EsT1FqFg7jE= X-Google-Smtp-Source: ABdhPJzigAzFK9vtzjEWaHBqySz0HDudQx1RCilySDqZMpg/WAOqVU3LoszPphHldk0DFEWgCWgfYw== X-Received: by 2002:a17:906:fb9b:: with SMTP id lr27mr13203438ejb.175.1607204458267; Sat, 05 Dec 2020 13:40:58 -0800 (PST) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id pg9sm418768ejb.102.2020.12.05.13.40.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Dec 2020 13:40:57 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Re: unbale to use pg_ctl in Windows Cmd. From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <59f55b22-0355-30ca-f115-ab2d2b26503d@gmail.com> Date: Sat, 5 Dec 2020 22:40:56 +0100 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <3FCC3330-1DC3-4C22-8952-DDB84B0E003B@gmail.com> References: <59f55b22-0355-30ca-f115-ab2d2b26503d@gmail.com> To: Ron X-Mailer: Apple Mail (2.3654.20.0.2.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Mark, hi Ron, > On 05. Dec, 2020, at 22:22, Ron wrote: >=20 > On 12/5/20 11:02 AM, mark armon wrote: >> pg_ctl status >> pg_ctl: no database directory specified and environment variable = PGDATA unset >> Try "pg_ctl=20 >> --help" for more information. >>=20 >>=20 >> C:\Users\Think>pg_ctl=20 >> --help >>=20 >> pg_ctl is a utility to initialize,=20 >> start, stop, or control a PostgreSQL server. >> =20 >> I don't know where the pg_data directory. So I set the = C:\Users\Think\Desktop\postgres\data as user variable and system = variable In windows setting. But still not working. In the bin = directory, there is pg_ctl.exe file. >=20 > Randomly deciding on a directory because you don't know where the data = actually is doesn't work. You need to know where the data is. maybe this helps with locating PGDATA. If you can connect you can ask = the database where PGDATA is: postgres=3D# show data_directory; data_directory =20 --------------------- /data/pg01/sdb01/db (1 row) Cheers, Paul=