Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use pg17 for benchmarking #363

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/benchmark-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Build
id: build
run: sudo su -c "PG_VERSION=15 USE_SOURCE=1 USE_SSL=1 ./ci/scripts/build.sh"
run: sudo su -c "PG_VERSION=17 USE_SOURCE=1 USE_SSL=1 ./ci/scripts/build.sh"
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

Expand Down
11 changes: 9 additions & 2 deletions ci/scripts/run-benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,25 @@ set -e
source "$(dirname "$0")/utils.sh"

export WORKDIR=/tmp/lantern
export PG_VERSION=15
export PG_VERSION=17
export GITHUB_OUTPUT=/dev/null
export PGDATA=/etc/postgresql/$PG_VERSION/main
export PGDATA=/var/lib/postgresql/$PG_VERSION/main

echo "port = 5432" >> ${PGDATA}/postgresql.conf
echo "shared_preload_libraries = 'lantern_extras' " >> ${PGDATA}/postgresql.conf
# Enable auth without password
echo "local all all trust" > $PGDATA/pg_hba.conf
echo "host all all 127.0.0.1/32 trust" >> $PGDATA/pg_hba.conf
echo "host all all ::1/128 trust" >> $PGDATA/pg_hba.conf

POSTGRES_HOST_AUTH_METHOD=trust /usr/lib/postgresql/$PG_VERSION/bin/postgres 1>/tmp/pg-out.log 2>/tmp/pg-error.log &
wait_for_pg

# wait for external indexing server
while ! nc -z localhost 8998; do
sleep 0.1
done

cd $WORKDIR/lantern_hnsw/build

export DATABASE_URL=postgresql://localhost:5432/postgres
Expand Down
Loading