when I run the command: pg restart on windows 10 i take the below error: pg_ctl: no database directory specified and environment variable PGDATA unset
You need to specify where the database directory is installed to.
eg
pg_ctl restart -D [insert directory location here]
Failing that you will need to set the environment variable PGDATA. Something like
set $PGDATA = [directory location here]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With