Skip to content

Commit

Permalink
Run queries in one transaction
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Bendel <peterbendel@neon.tech>
  • Loading branch information
bayandin and Bodobolero committed Jul 2, 2024
1 parent 26bf0ce commit 2b80c44
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/actions/run-python-test-set/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,13 @@ runs:
# Wake up the cluster if we use remote neon instance
if [ "${{ inputs.build_type }}" = "remote" ] && [ -n "${BENCHMARK_CONNSTR}" ]; then
QUERIES=("SELECT version()")
QUERIES="SELECT version();"
if [[ "${PLATFORM}" = "neon"* ]]; then
QUERIES+=("SHOW neon.tenant_id")
QUERIES+=("SHOW neon.timeline_id")
QUERIES+="SHOW neon.tenant_id;"
QUERIES+="SHOW neon.timeline_id;"
fi
for q in "${QUERIES[@]}"; do
${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin/psql ${BENCHMARK_CONNSTR} -c "${q}"
done
${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin/psql "${BENCHMARK_CONNSTR}" -c "${QUERIES}"
fi
# Run the tests.
Expand Down

0 comments on commit 2b80c44

Please sign in to comment.