Given:
$which psql
/Library/PostgreSQL/12/bin/psql
$which createdb
/Library/PostgreSQL/12/bin/createdb
Recently I created a database:
$createdb -U postgres postgres
Password:
However, I don't understand why the server version varies from the client.
$psql -U postgres
Password for user postgres:
psql (12.1, server 9.6.2)
Type "help" for help.
How can I create the server on 12.1 as well?