From 0b24b8520bc8422bdfa45919a6a2640d59ac50d8 Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Sun, 26 Oct 2025 19:40:08 +0000 Subject: [PATCH 1/2] Update Supabase --- supabase/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supabase/README.md b/supabase/README.md index f4162276d..b33fcc04f 100644 --- a/supabase/README.md +++ b/supabase/README.md @@ -6,4 +6,5 @@ $ export SUPABASE_HOST="" $ ./benchmark.sh ``` -The Supabase host looks something like: `db.oolfrgytrdoculplvizc.supabase.co` +The Supabase host looks something like: `db.oolfrgytrdoculplvizc.supabase.co`. +It can be retrieved from the [dashboard](https://supabase.com/docs/guides/troubleshooting/resolving-database-hostname-and-managing-your-ip-address-pVlwE0) From abc55b22b89a0c80dffdc2f30983298a03a2de22 Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Sun, 26 Oct 2025 21:33:59 +0000 Subject: [PATCH 2/2] Supabase: Use connection string to allow usage with IPv4 --- supabase/README.md | 9 +++++---- supabase/benchmark.sh | 6 ++---- supabase/load.sh | 4 ++-- supabase/run.sh | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/supabase/README.md b/supabase/README.md index b33fcc04f..a056e6ee4 100644 --- a/supabase/README.md +++ b/supabase/README.md @@ -1,10 +1,11 @@ ## Running Supabase Benchmark ```bash -$ export PG_PASSWORD="" -$ export SUPABASE_HOST="" +$ export SUPABASE_CONNECTION_STRING="[...]" $ ./benchmark.sh ``` -The Supabase host looks something like: `db.oolfrgytrdoculplvizc.supabase.co`. -It can be retrieved from the [dashboard](https://supabase.com/docs/guides/troubleshooting/resolving-database-hostname-and-managing-your-ip-address-pVlwE0) +By default, Supabase requires IPv6 connections. +This restriction can be bypassed using the "transaction pooler". +You can get its connection string from the Supabase "Connect to your project" UI. +It looks something like this: `postgresql://postgres.zlltjtdocmcqiqprpunq:[YOUR-PASSWORD]@aws-1-eu-north-1.pooler.supabase.com:6543/postgres` diff --git a/supabase/benchmark.sh b/supabase/benchmark.sh index 7f80489fd..391a2aabd 100755 --- a/supabase/benchmark.sh +++ b/supabase/benchmark.sh @@ -16,8 +16,8 @@ sudo apt-get install -y pigz wget --continue --progress=dot:giga 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz' pigz -d -f hits.tsv.gz -psql -h ${SUPABASE_HOST} -p 5432 -d postgres -U postgres -t -c 'CREATE DATABASE test' -psql -h ${SUPABASE_HOST} -p 5432 -U postgres -d test -t