#! /bin/sh

# Stop PostgreSQL server (postmaster)

# Home directory for Pathena files is changed in this script
# by invoking script 'build/relocate'.

export PATHENA=~/.pathena

if [ -e $PATHENA/config/definitions ];
    then DEFS=config ;
    else DEFS=bin ;
fi
source $PATHENA/$DEFS/definitions

cd $PATHENA
$PGBIN/pg_ctl -D data stop
