pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: BeginnerC <chuxuec@outlook.com>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: A simple question: Why 'pg_ctl: command not found...' ?
Date: Tue, 08 Mar 2022 17:44:30 +0800
Message-ID: <TYAP286MB063677A6E825062FFE4FF3F1A9099@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM> (raw)

Hello everyone,
When I start to learn the 'pg_ctl',
the bash echo 'pg_ctl: command not found...' and then print 'Install 
package 'postgresql-server' to provide command 'pg_ctl'? [N/y]'
I am confused because I had already install the PostgreSQL correctly 
just follow the postgres Document,to prove that,I use the psql to 
connect to the postgres and execute some sql statements (Just like 
'CREATE TABLE', 'SELECT' and 'INSERT'),and these statements executed 
successfully.
So how to solve this problem? Should I use the dnf to install the 
'postgresql-server' or just add some path to the environment variable?
My system is Fedora 35 and the PostgreSQL version is 14.
Thanks in advance!

view thread (3+ messages)  latest in thread

Message-ID: <TYAP286MB063677A6E825062FFE4FF3F1A9099@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM>
Permalink:  ../TYAP286MB063677A6E825062FFE4FF3F1A9099@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM/
Also on:    postgresql.org/message-id/TYAP286MB063677A6E825062FFE4FF3F1A9099@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: chuxuec@outlook.com
  Subject: Re: A simple question: Why 'pg_ctl: command not found...' ?
  In-Reply-To: <TYAP286MB063677A6E825062FFE4FF3F1A9099@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM>
  References: <TYAP286MB063677A6E825062FFE4FF3F1A9099@TYAP286MB0636.JPNP286.PROD.OUTLOOK.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