postgresql switch database in sql script code example
Example: how to switch database in psql
user_name=# CREATE DATABASE testdatabase;
user_name=# \c testdatabase
user_name=# CREATE DATABASE testdatabase;
user_name=# \c testdatabase