# HG changeset patch # User Edho Arief # Date 1357468104 -10800 # Node ID cb2d444253f41f0985c04d17273537c2da495fde # Parent 1094159210e0c62ebba97ffedf6a4d8f8312796e Added enterprisedb postgres. diff -r 1094159210e0 -r cb2d444253f4 rc/bashrc --- a/rc/bashrc Sun Jan 06 13:28:05 2013 +0300 +++ b/rc/bashrc Sun Jan 06 13:28:24 2013 +0300 @@ -33,6 +33,13 @@ test -d /usr/pgsql-9.1 && PATH="/usr/pgsql-9.1/bin:${PATH}" test -d /usr/pgsql-9.2 && PATH="/usr/pgsql-9.2/bin:${PATH}" +# PostgreSQL EnterpriseDB +# Defaults to last version available. +_pgbindir=(/opt/PostgreSQL/*/bin) +_pgbindir="${_pgbindir[@]:(-1)}" +test -d "${_pgbindir}" && PATH="${_pgbindir}:${PATH}" +unset _pgbindir + # Nuke currently defined functions unset -f $(set | grep ' \(\)$' | cut -d ' ' -f 1)