#!/bin/bash
db_user=$1
db_userpwd=$2
db_host=localhost

# * Install mysql
brew install postgresql

createuser ${db_user} --createdb

psql -U ${db_user} <<EOF
\password ${db_userpwd}
EOF

#!/bin/bash
db_user=$1
db_userpwd=$2
db_host=localhost

# * Install mysql
brew install postgresql

# Create a DB user with 'CREATEDB' attribute/permission.
createuser ${db_user} --createdb

# Set password for new user, you will be prompted to enter password
psql postgres<<EOF
\password ${db_user}
EOF

# Activate extensions for text search
psql postgres<<EOF
CREATE EXTENSION IF NOT EXISTS btree_gin;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS unaccent;
EOF

Update setup DB script to activate extension for text search.
Update setup DB script to activate extension for text search.
