From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: unbale to use pg_ctl in Windows Cmd.
Date: Sun, 6 Dec 2020 02:16:45 -0600
Message-ID: <4421c35e-3859-9a91-94c7-d6f734e58ec6@gmail.com> (raw)
In-Reply-To: <CACh77r6HFZZf6niDZTo31vpGjijTUa8Z_=1HRLjv5aQbnBXq6Q@mail.gmail.com>
References: <CACh77r77PdO6qnX6FGDbu2XJEA1art7btFZkXzMOb4GrdPzk1A@mail.gmail.com>
<7649CBF6-6384-438A-BA5C-1ADA40A980BD@elevated-dev.com>
<CACh77r6HFZZf6niDZTo31vpGjijTUa8Z_=1HRLjv5aQbnBXq6Q@mail.gmail.com>
You've got to do it because Postgresql requires you to.
Or you could set PGDATA=|C:\Program Files\PostgreSQL\13\data'|and run
|pg_ctl status|, just like the error message aid.
On 12/6/20 2:02 AM, mark armon wrote:
>
> Problem resolved. But I just don’t know why.
> So I need to add the data directory. like |pg_ctl status -D 'C:\Program
> Files\PostgreSQL\13\data'|
>
>
>
> On Sat, Dec 5, 2020 at 10:54 PM Scott Ribe <scott_ribe@elevated-dev.com
> <mailto:scott_ribe@elevated-dev.com>> wrote:
>
> > On Dec 5, 2020, at 10:02 AM, mark armon <1994hejian@gmail.com
> <mailto:1994hejian@gmail.com>> wrote:
> >
> > 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.
>
> Doesn't do any good if that's not where the data directory is.
>
--
Angular momentum makes the world go 'round.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: unbale to use pg_ctl in Windows Cmd.
In-Reply-To: <4421c35e-3859-9a91-94c7-d6f734e58ec6@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox