[go: up one dir, main page]

postgres 0.9.3

A native PostgreSQL driver
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
set -e

cd "$(dirname "$0")"

psql -U postgres < setup.sql

sudo cp pg_hba.conf $(psql -U postgres -c "SHOW hba_file" -At)

DATA_DIR=$(psql -U postgres -c "SHOW data_directory" -At)
PG_PID=$(sudo head -n1 $DATA_DIR/postmaster.pid)
sudo kill -SIGHUP $PG_PID