From bdcc2bea5032a6eb4de563d1c81447c1adeaec01 Mon Sep 17 00:00:00 2001 From: BodoBolero Date: Fri, 8 Nov 2024 17:39:08 +0100 Subject: [PATCH] drop database cannot run in transaction block --- .github/workflows/benchmarking.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmarking.yml b/.github/workflows/benchmarking.yml index 36038f7ee1b9..0ff6c66a6970 100644 --- a/.github/workflows/benchmarking.yml +++ b/.github/workflows/benchmarking.yml @@ -142,7 +142,8 @@ jobs: else new_connstr="${base_connstr}/neondb" fi - ${PSQL} "${new_connstr}" -c "drop database ludicrous; CREATE DATABASE ludicrous;" + ${PSQL} "${new_connstr}" -c "drop database ludicrous;" + ${PSQL} "${new_connstr}" -c "CREATE DATABASE ludicrous;" ${PSQL} "${NEW_PROJECT_CONNSTR}" -c "CREATE EXTENSION neon; CREATE EXTENSION neon_utils;" BACKPRESSURE_TIME_BEFORE_INGEST=$(${PSQL} "${NEW_PROJECT_CONNSTR}" -t -c "select backpressure_throttling_time()/1000000;") echo "BACKPRESSURE_TIME_BEFORE_INGEST=${BACKPRESSURE_TIME_BEFORE_INGEST}" >> $GITHUB_ENV