changeset 439:cb2d444253f4

Added enterprisedb postgres.
author Edho Arief <edho@myconan.net>
date Sun, 06 Jan 2013 13:28:24 +0300
parents 1094159210e0
children abbdb936a36a
files rc/bashrc
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)