3

How do I stop a particular Postgres.app cluster without using the gui.

Instead of gui, I want to use bash/Terminal.app

stopping it via gui

I should also point out that, Postgres app has a menu like this

enter image description here

So if I do a kill, would the menu show an incorrect state?

Sahil Aggarwal
  • 1,311
  • 1
  • 12
  • 29
american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80

1 Answers1

4

Can be done using pg_ctl

pg_ctl stop -D <path to postgres data dir>

Example

pg_ctl stop -D ~/Postgres/pg96/data

isank-a
  • 1,545
  • 2
  • 17
  • 22