Skip to content

Commit

Permalink
Remove db host
Browse files Browse the repository at this point in the history
  • Loading branch information
stijndcl committed May 6, 2024
1 parent 9379ab4 commit fc0ead3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion scripts/parallel_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions scripts/parallel_load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit fc0ead3

Please sign in to comment.