diff --git a/scripts/parallel_index.sh b/scripts/parallel_index.sh index 13f1ac7..a8c0178 100755 --- a/scripts/parallel_index.sh +++ b/scripts/parallel_index.sh @@ -3,7 +3,6 @@ # Define PSQL connection parameters DB_USER="unipept" DB_PASSWORD="unipept" -DB_HOST="localhost" DB_NAME="unipept" # Function to add an index in the background diff --git a/scripts/parallel_load.sh b/scripts/parallel_load.sh index 85ee682..e87e00f 100755 --- a/scripts/parallel_load.sh +++ b/scripts/parallel_load.sh @@ -3,7 +3,6 @@ shopt -s expand_aliases # Define PSQL connection parameters export DB_USER="unipept" export DB_PASSWORD="unipept" -export DB_HOST="localhost" export DB_NAME="unipept" dir="$1" @@ -21,7 +20,7 @@ function load_table() { else lz4cat $file fi - } | PGPASSWORD=$DB_PASSWORD psql -U $DB_USER -h "$DB_HOST" -c "COPY $DB_NAME.$tbl FROM STDIN WITH (FORMAT TEXT, DELIMITER E'\t', HEADER false, NULL '\N');" 2>&1 + } | PGPASSWORD=$DB_PASSWORD psql -U $DB_USER -c "COPY $DB_NAME.$tbl FROM STDIN WITH (FORMAT TEXT, DELIMITER E'\t', HEADER false, NULL '\N');" 2>&1 } export -f load_table