From: Justin Hopkins Date: Thu, 14 Jun 2012 14:42:42 +0000 (-0500) Subject: add database and username variables to psql command X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fhopkinsju%2Fbuild-eg-replication;p=working%2FEvergreen.git add database and username variables to psql command --- diff --git a/Open-ILS/examples/build-eg-replication.sh b/Open-ILS/examples/build-eg-replication.sh index 8c98ed4188..427b26744f 100755 --- a/Open-ILS/examples/build-eg-replication.sh +++ b/Open-ILS/examples/build-eg-replication.sh @@ -51,7 +51,7 @@ if [ "_$PGUSER" == "_" ]; then fi if [ "_$TABLES" == "_" ]; then - TABLES=$(psql -tc " + TABLES=$(psql --dbname=$PGDATABASE --username=$PGUSER -tc " select array_to_string(array_agg(table_schema || '.' || table_name),' ') from information_schema.tables where table_schema in (