Milanor
Milanor

Reputation: 61

pg_ctl command gives no reponse on Ubuntu 20.04 Postgres14

Im new to Ubuntu, Accessing something like pg_ctl wont work. Whats the problem here? Is it not installed? Or is it something else? Would really appreciate some help

Guy@GuyLinux:~$ sudo -i -u postgres
[sudo] password for guy: 
postgres@GuyLinux:~$ psql
psql (14.1 (Ubuntu 14.1-1.pgdg20.04+1))
Type "help" for help.

postgres=# pg_ctl status

Returns no response

Upvotes: 0

Views: 569

Answers (1)

Tim Roberts
Tim Roberts

Reputation: 54698

pg_ctl is a shell command, not a Postgres command. You enter it at the shell prompt ($), not in the psql utility.

Upvotes: 2

Related Questions