mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-22 13:40:56 +08:00
* cagg_watermark_concurrent_update is very dependent on the chunk numbers, and should be ran first. * telemetry_stats should do VACUUM and REINDEX before getting the statistics, to avoid dependency on how the index was build * cagg_migrate_function is missing some orderbys
25 lines
939 B
Bash
Executable File
25 lines
939 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Wrapper for the PostgreSQL isolationtest runner. It replaces
|
|
# the chunks IDs in the output of the tests by _X_X_. So, even
|
|
# if the IDs change, the tests will not fail.
|
|
##############################################################
|
|
|
|
set -e
|
|
set -u
|
|
|
|
ISOLATIONTEST=$1
|
|
shift
|
|
|
|
# Note that removing the chunk numbers is not enough. The chunk numbers also
|
|
# influence the alignment of the EXPLAIN output, so not only we have to replace
|
|
# them, we also have to remove the "----"s and the trailing spaces. The aligned
|
|
# output format in isolation tester is hardcoded, we cannot change it. Moreover,
|
|
# the chunk numbers influence the names of indexes if they are long enough to be
|
|
# truncated, so the only way to get a stable explain output is to run such a test
|
|
# in a separate database.
|
|
$ISOLATIONTEST "$@" | \
|
|
sed -e 's!_[0-9]\{1,\}_[0-9]\{1,\}_chunk!_X_X_chunk!g' \
|
|
-e 's!hypertable_[0-9]\{1,\}!hypertable_X!g'
|
|
|