.. | ||
build-pgroonga.sh | ||
install.sh | ||
README.md | ||
start-postgres.sh | ||
start-redis.sh |
macOS installation methods
- install redis and postgresql
./install.sh
- build pgroonga
./build-pgroonga.sh
- start redis and postgresql
./start-postgres.sh
# and
./start-redis.sh
- setup detabase
- create db and user
psql -d postgres -U $USER
-- Create a new PostgreSQL user named 'firefish' with encrypted password.
-- This user will not have superuser, createdb, or createrole privileges.
CREATE USER firefish WITH ENCRYPTED PASSWORD 'password' SUPERUSER NOCREATEDB NOCREATEROLE;
-- Create a new database named 'firefish_db' with UTF8 encoding and owned by the 'firefish' user.
CREATE DATABASE firefish_db WITH ENCODING 'UTF8' OWNER firefish;
- enable pgroonga extension
# enter this command then type password
psql -U firefish -d firefish_db -W
-- This ensures the PGroonga extension is enabled for the database.
CREATE EXTENSION pgroonga;