Skip to content

Instantly share code, notes, and snippets.

View hanada's full-sized avatar

Shigeru HANADA hanada

View GitHub Profile
@hanada
hanada / create_cluster.sh
Created August 23, 2012 02:42
creates a new PostgreSQL database cluster
#!/bin/sh
BASE_PATH=`pwd`
export PGDATA=$BASE_PATH/data
export PGUSER=postgres
export ARCLOG_PATH=$BASE_PATH/arclog
# determine target PostgreSQL version
VERSION=`pg_config --version | sed 's/^PostgreSQL //'`