After su postgres and typing of my password in my macOS terminal, it shows bash-3.2$
What when I type command like createdb, it says:
bash: createdb: command not found
I googled and it says "either PostgreSQL was not installed at all or your shell's search path was not set to include it."
How can I fix this?