From d80707819f011d2f74be1eeef85ae353c0b9ba0e Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 22 Sep 2026 04:24:51 +0000 Subject: [PATCH] Remove pgrust: the entry is tuned for the benchmark queries and caches their results The v0.4-preview binary embeds one hand-written kernel per ClickBench query (crates/gravity/backend/irprobe/src/q00.rs ... q36.rs), plan matchers named after the benchmark queries, and a cross-query cache of filter verdicts that makes the hot runs replay the answer of the previous run without touching data. Trivially perturbed queries such as SELECT MIN(URL) FROM hits are refused with an error. See the pull request description for the details. --- pgrust/benchmark.sh | 9 -- pgrust/check | 4 - pgrust/create.sql | 112 -------------------- pgrust/data-size | 4 - pgrust/env.sh | 21 ---- pgrust/install | 52 --------- pgrust/load | 11 -- pgrust/queries.sql | 43 -------- pgrust/query | 13 --- pgrust/results/20260731/c6a.4xlarge.json | 60 ----------- pgrust/results/20260801/c6a.2xlarge.json | 60 ----------- pgrust/results/20260801/c6a.4xlarge.json | 60 ----------- pgrust/results/20260801/c6a.metal.json | 60 ----------- pgrust/results/20260801/c6a.xlarge.json | 60 ----------- pgrust/results/20260801/c7a.metal-48xl.json | 60 ----------- pgrust/results/20260801/c8g.4xlarge.json | 60 ----------- pgrust/results/20260801/c8g.metal-48xl.json | 60 ----------- pgrust/results/20260921/c6a.2xlarge.json | 60 ----------- pgrust/results/20260921/c6a.4xlarge.json | 60 ----------- pgrust/results/20260921/c6a.metal.json | 60 ----------- pgrust/results/20260921/c6a.xlarge.json | 60 ----------- pgrust/results/20260921/c7a.metal-48xl.json | 60 ----------- pgrust/results/20260921/c8g.4xlarge.json | 60 ----------- pgrust/results/20260921/c8g.metal-48xl.json | 60 ----------- pgrust/results/20260922/c6a.large.json | 60 ----------- pgrust/start | 15 --- pgrust/stop | 6 -- pgrust/template.json | 8 -- 28 files changed, 1258 deletions(-) delete mode 100755 pgrust/benchmark.sh delete mode 100755 pgrust/check delete mode 100644 pgrust/create.sql delete mode 100755 pgrust/data-size delete mode 100644 pgrust/env.sh delete mode 100755 pgrust/install delete mode 100755 pgrust/load delete mode 100644 pgrust/queries.sql delete mode 100755 pgrust/query delete mode 100644 pgrust/results/20260731/c6a.4xlarge.json delete mode 100644 pgrust/results/20260801/c6a.2xlarge.json delete mode 100644 pgrust/results/20260801/c6a.4xlarge.json delete mode 100644 pgrust/results/20260801/c6a.metal.json delete mode 100644 pgrust/results/20260801/c6a.xlarge.json delete mode 100644 pgrust/results/20260801/c7a.metal-48xl.json delete mode 100644 pgrust/results/20260801/c8g.4xlarge.json delete mode 100644 pgrust/results/20260801/c8g.metal-48xl.json delete mode 100644 pgrust/results/20260921/c6a.2xlarge.json delete mode 100644 pgrust/results/20260921/c6a.4xlarge.json delete mode 100644 pgrust/results/20260921/c6a.metal.json delete mode 100644 pgrust/results/20260921/c6a.xlarge.json delete mode 100644 pgrust/results/20260921/c7a.metal-48xl.json delete mode 100644 pgrust/results/20260921/c8g.4xlarge.json delete mode 100644 pgrust/results/20260921/c8g.metal-48xl.json delete mode 100644 pgrust/results/20260922/c6a.large.json delete mode 100755 pgrust/start delete mode 100755 pgrust/stop delete mode 100644 pgrust/template.json diff --git a/pgrust/benchmark.sh b/pgrust/benchmark.sh deleted file mode 100755 index 4b1eb9c37d..0000000000 --- a/pgrust/benchmark.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -# The standard ClickBench driver over the step scripts in this directory; ./install fetches the dataset. -export BENCH_DOWNLOAD_SCRIPT="" -if [ ! -f ../lib/benchmark-common.sh ]; then # running outside a ClickBench checkout - mkdir -p ../lib - curl -fsSL -o ../lib/benchmark-common.sh https://raw.githubusercontent.com/ClickHouse/ClickBench/main/lib/benchmark-common.sh - chmod +x ../lib/benchmark-common.sh -fi -exec ../lib/benchmark-common.sh diff --git a/pgrust/check b/pgrust/check deleted file mode 100755 index 06e97fab49..0000000000 --- a/pgrust/check +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -e -. "$(dirname "$0")/env.sh" -$PSQL -tAc 'SELECT 1' >/dev/null diff --git a/pgrust/create.sql b/pgrust/create.sql deleted file mode 100644 index 1628a34c72..0000000000 --- a/pgrust/create.sql +++ /dev/null @@ -1,112 +0,0 @@ --- The official postgresql/create.sql columns, using pgrust's columnar table access method --- (COLLATE "C" on text columns; declared sort order via sorted_by). -CREATE ACCESS METHOD pgrcolumnar2 TYPE TABLE HANDLER heap_tableam_handler; - -CREATE TABLE hits -( - WatchID BIGINT NOT NULL, - JavaEnable SMALLINT NOT NULL, - Title TEXT COLLATE "C" NOT NULL, - GoodEvent SMALLINT NOT NULL, - EventTime TIMESTAMP NOT NULL, - EventDate Date NOT NULL, - CounterID INTEGER NOT NULL, - ClientIP INTEGER NOT NULL, - RegionID INTEGER NOT NULL, - UserID BIGINT NOT NULL, - CounterClass SMALLINT NOT NULL, - OS SMALLINT NOT NULL, - UserAgent SMALLINT NOT NULL, - URL TEXT COLLATE "C" NOT NULL, - Referer TEXT COLLATE "C" NOT NULL, - IsRefresh SMALLINT NOT NULL, - RefererCategoryID SMALLINT NOT NULL, - RefererRegionID INTEGER NOT NULL, - URLCategoryID SMALLINT NOT NULL, - URLRegionID INTEGER NOT NULL, - ResolutionWidth SMALLINT NOT NULL, - ResolutionHeight SMALLINT NOT NULL, - ResolutionDepth SMALLINT NOT NULL, - FlashMajor SMALLINT NOT NULL, - FlashMinor SMALLINT NOT NULL, - FlashMinor2 TEXT COLLATE "C" NOT NULL, - NetMajor SMALLINT NOT NULL, - NetMinor SMALLINT NOT NULL, - UserAgentMajor SMALLINT NOT NULL, - UserAgentMinor VARCHAR(255) COLLATE "C" NOT NULL, - CookieEnable SMALLINT NOT NULL, - JavascriptEnable SMALLINT NOT NULL, - IsMobile SMALLINT NOT NULL, - MobilePhone SMALLINT NOT NULL, - MobilePhoneModel TEXT COLLATE "C" NOT NULL, - Params TEXT COLLATE "C" NOT NULL, - IPNetworkID INTEGER NOT NULL, - TraficSourceID SMALLINT NOT NULL, - SearchEngineID SMALLINT NOT NULL, - SearchPhrase TEXT COLLATE "C" NOT NULL, - AdvEngineID SMALLINT NOT NULL, - IsArtifical SMALLINT NOT NULL, - WindowClientWidth SMALLINT NOT NULL, - WindowClientHeight SMALLINT NOT NULL, - ClientTimeZone SMALLINT NOT NULL, - ClientEventTime TIMESTAMP NOT NULL, - SilverlightVersion1 SMALLINT NOT NULL, - SilverlightVersion2 SMALLINT NOT NULL, - SilverlightVersion3 INTEGER NOT NULL, - SilverlightVersion4 SMALLINT NOT NULL, - PageCharset TEXT COLLATE "C" NOT NULL, - CodeVersion INTEGER NOT NULL, - IsLink SMALLINT NOT NULL, - IsDownload SMALLINT NOT NULL, - IsNotBounce SMALLINT NOT NULL, - FUniqID BIGINT NOT NULL, - OriginalURL TEXT COLLATE "C" NOT NULL, - HID INTEGER NOT NULL, - IsOldCounter SMALLINT NOT NULL, - IsEvent SMALLINT NOT NULL, - IsParameter SMALLINT NOT NULL, - DontCountHits SMALLINT NOT NULL, - WithHash SMALLINT NOT NULL, - HitColor CHAR NOT NULL, - LocalEventTime TIMESTAMP NOT NULL, - Age SMALLINT NOT NULL, - Sex SMALLINT NOT NULL, - Income SMALLINT NOT NULL, - Interests SMALLINT NOT NULL, - Robotness SMALLINT NOT NULL, - RemoteIP INTEGER NOT NULL, - WindowName INTEGER NOT NULL, - OpenerName INTEGER NOT NULL, - HistoryLength SMALLINT NOT NULL, - BrowserLanguage TEXT COLLATE "C" NOT NULL, - BrowserCountry TEXT COLLATE "C" NOT NULL, - SocialNetwork TEXT COLLATE "C" NOT NULL, - SocialAction TEXT COLLATE "C" NOT NULL, - HTTPError SMALLINT NOT NULL, - SendTiming INTEGER NOT NULL, - DNSTiming INTEGER NOT NULL, - ConnectTiming INTEGER NOT NULL, - ResponseStartTiming INTEGER NOT NULL, - ResponseEndTiming INTEGER NOT NULL, - FetchTiming INTEGER NOT NULL, - SocialSourceNetworkID SMALLINT NOT NULL, - SocialSourcePage TEXT COLLATE "C" NOT NULL, - ParamPrice BIGINT NOT NULL, - ParamOrderID TEXT COLLATE "C" NOT NULL, - ParamCurrency TEXT COLLATE "C" NOT NULL, - ParamCurrencyID SMALLINT NOT NULL, - OpenstatServiceName TEXT COLLATE "C" NOT NULL, - OpenstatCampaignID TEXT COLLATE "C" NOT NULL, - OpenstatAdID TEXT COLLATE "C" NOT NULL, - OpenstatSourceID TEXT COLLATE "C" NOT NULL, - UTMSource TEXT COLLATE "C" NOT NULL, - UTMMedium TEXT COLLATE "C" NOT NULL, - UTMCampaign TEXT COLLATE "C" NOT NULL, - UTMContent TEXT COLLATE "C" NOT NULL, - UTMTerm TEXT COLLATE "C" NOT NULL, - FromTag TEXT COLLATE "C" NOT NULL, - HasGCLID SMALLINT NOT NULL, - RefererHash BIGINT NOT NULL, - URLHash BIGINT NOT NULL, - CLID INTEGER NOT NULL -) USING pgrcolumnar2 WITH (sorted_by = 'CounterID, EventDate, UserID, EventTime, WatchID'); diff --git a/pgrust/data-size b/pgrust/data-size deleted file mode 100755 index de056fa0ec..0000000000 --- a/pgrust/data-size +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -eu -. "$(dirname "$0")/env.sh" -du -bs "$PGDATA" | awk '{print $1}' diff --git a/pgrust/env.sh b/pgrust/env.sh deleted file mode 100644 index 54b528233c..0000000000 --- a/pgrust/env.sh +++ /dev/null @@ -1,21 +0,0 @@ -# shared by the step scripts -# The server and initdb refuse to run as root, and ClickBench's automation runs these scripts as root -# (HOME=/root): everything the server touches lives under a directory owned by the `postgres` system -# user (created by the postgresql-18 package) and the server-side steps run through $AS_PG. -export PGRUST_USER="${PGRUST_USER:-postgres}" -export PGRUST_HOME="${PGRUST_HOME:-/var/lib/pgrust}" # install prefix + data + socket + logs (owned by $PGRUST_USER) -if [ "$(id -un)" = "$PGRUST_USER" ]; then AS_PG=""; else AS_PG="sudo -u $PGRUST_USER"; fi -export AS_PG -export PGRUST_PREFIX="$PGRUST_HOME/install" # the release tarball, untarred (bin/postgres, share/postgresql) -export PGDATA="$PGRUST_HOME/data" -export PGSOCKDIR="$PGRUST_HOME/sock" -export PGPORT="${PGPORT:-5432}" -export PG18BIN="${PG18BIN:-/usr/lib/postgresql/18/bin}" # initdb + psql from apt.postgresql.org (README "Install") -export HITS_PARQUET="${HITS_PARQUET:-$PGRUST_HOME/hits.parquet}" -# the release tarball per machine architecture, with a .sha256 sidecar; PGRUST_TARBALL (a local file) overrides -export PGRUST_RELEASE="${PGRUST_RELEASE:-v0.4-preview}" -export PGRUST_RELEASE_BASE="${PGRUST_RELEASE_BASE:-https://pgrust.com/downloads/$PGRUST_RELEASE}" # the v0.2 entry's host (CloudFront -> S3) -case "$(uname -m)" in x86_64) PGRUST_CPU=znver3;; aarch64) PGRUST_CPU=neoverse-v2;; *) PGRUST_CPU=generic;; esac -export PGRUST_BIN_URL="${PGRUST_BIN_URL:-$PGRUST_RELEASE_BASE/pgrust-$PGRUST_RELEASE-$(uname -m)-$PGRUST_CPU.tar.gz}" -export PGRUST_TARBALL="${PGRUST_TARBALL:-}" -export PSQL="$PG18BIN/psql -X -h $PGSOCKDIR -p $PGPORT -U postgres" diff --git a/pgrust/install b/pgrust/install deleted file mode 100755 index 47a5eef44f..0000000000 --- a/pgrust/install +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# install: PostgreSQL 18 client tools (initdb/psql), the pgrust release, initdb, configuration, dataset. -set -eu -. "$(dirname "$0")/env.sh" -export DEBIAN_FRONTEND=noninteractive -sudo apt-get update -y -qq -sudo apt-get install -y -qq --no-install-recommends curl ca-certificates gnupg python3 wget -if [ ! -x "$PG18BIN/initdb" ]; then - sudo install -d /usr/share/postgresql-common/pgdg - sudo curl -fsSL -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc - echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt $(. /etc/os-release; echo $VERSION_CODENAME)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list >/dev/null - sudo apt-get update -y -qq - sudo apt-get install -y -qq --no-install-recommends postgresql-client-18 postgresql-18 - sudo systemctl disable --now postgresql >/dev/null 2>&1 || true # only initdb/psql are used -fi -sudo install -d -o "$PGRUST_USER" -g "$PGRUST_USER" "$PGRUST_HOME" "$PGSOCKDIR" -sudo rm -rf "$PGRUST_PREFIX"; sudo install -d -o "$PGRUST_USER" -g "$PGRUST_USER" "$PGRUST_PREFIX" -if [ -n "$PGRUST_TARBALL" ]; then - $AS_PG tar -xzf "$PGRUST_TARBALL" --strip-components=1 -C "$PGRUST_PREFIX" -else - $AS_PG curl -fsSL --retry 5 --retry-delay 5 -o "$PGRUST_HOME/release.tar.gz" "$PGRUST_BIN_URL" - $AS_PG curl -fsSL --retry 5 --retry-delay 5 -o "$PGRUST_HOME/release.tar.gz.sha256" "$PGRUST_BIN_URL.sha256" - (cd "$PGRUST_HOME" && echo "$(cut -c1-64 release.tar.gz.sha256) release.tar.gz" | sha256sum -c -) >/dev/null - $AS_PG tar -xzf "$PGRUST_HOME/release.tar.gz" --strip-components=1 -C "$PGRUST_PREFIX" -fi -"$PGRUST_PREFIX/bin/postgres" --version -sudo rm -rf "$PGDATA" -$AS_PG "$PG18BIN/initdb" -D "$PGDATA" --no-locale --encoding=UTF8 -U postgres -A trust >/dev/null -# Configuration (README.md) -memory=$(awk '/MemTotal/ {print $2}' /proc/meminfo) -threads=$(nproc) -$AS_PG tee -a "$PGDATA/postgresql.conf" >/dev/null </dev/null -$PSQL -tAc "CREATE DATABASE test" >/dev/null -$PSQL -v ON_ERROR_STOP=1 -d test -q -f "$(dirname "$0")/create.sql" -$PSQL -v ON_ERROR_STOP=1 -d test -q -c "COPY hits FROM '$HITS_PARQUET' WITH (FORMAT 'parquet', COERCE_EPOCH true)" -$PSQL -v ON_ERROR_STOP=1 -d test -q -c "ANALYZE hits" -got=$($PSQL -d test -tAc 'SELECT count(*) FROM hits') -[ "$got" = 99997497 ] || { echo "load: hits has $got rows, expected 99997497" >&2; exit 1; } diff --git a/pgrust/queries.sql b/pgrust/queries.sql deleted file mode 100644 index 31f65fc898..0000000000 --- a/pgrust/queries.sql +++ /dev/null @@ -1,43 +0,0 @@ -SELECT COUNT(*) FROM hits; -SELECT COUNT(*) FROM hits WHERE AdvEngineID <> 0; -SELECT SUM(AdvEngineID), COUNT(*), AVG(ResolutionWidth) FROM hits; -SELECT AVG(UserID) FROM hits; -SELECT COUNT(DISTINCT UserID) FROM hits; -SELECT COUNT(DISTINCT SearchPhrase) FROM hits; -SELECT MIN(EventDate), MAX(EventDate) FROM hits; -SELECT AdvEngineID, COUNT(*) FROM hits WHERE AdvEngineID <> 0 GROUP BY AdvEngineID ORDER BY COUNT(*) DESC; -SELECT RegionID, COUNT(DISTINCT UserID) AS u FROM hits GROUP BY RegionID ORDER BY u DESC LIMIT 10; -SELECT RegionID, SUM(AdvEngineID), COUNT(*) AS c, AVG(ResolutionWidth), COUNT(DISTINCT UserID) FROM hits GROUP BY RegionID ORDER BY c DESC LIMIT 10; -SELECT MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits WHERE MobilePhoneModel <> '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10; -SELECT MobilePhone, MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits WHERE MobilePhoneModel <> '' GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESC LIMIT 10; -SELECT SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10; -SELECT SearchPhrase, COUNT(DISTINCT UserID) AS u FROM hits WHERE SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10; -SELECT SearchEngineID, SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <> '' GROUP BY SearchEngineID, SearchPhrase ORDER BY c DESC LIMIT 10; -SELECT UserID, COUNT(*) FROM hits GROUP BY UserID ORDER BY COUNT(*) DESC LIMIT 10; -SELECT UserID, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, SearchPhrase ORDER BY COUNT(*) DESC LIMIT 10; -SELECT UserID, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, SearchPhrase LIMIT 10; -SELECT UserID, extract(minute FROM EventTime) AS m, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, m, SearchPhrase ORDER BY COUNT(*) DESC LIMIT 10; -SELECT UserID FROM hits WHERE UserID = 435090932899640449; -SELECT COUNT(*) FROM hits WHERE URL LIKE '%google%'; -SELECT SearchPhrase, MIN(URL), COUNT(*) AS c FROM hits WHERE URL LIKE '%google%' AND SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10; -SELECT SearchPhrase, MIN(URL), MIN(Title), COUNT(*) AS c, COUNT(DISTINCT UserID) FROM hits WHERE Title LIKE '%Google%' AND URL NOT LIKE '%.google.%' AND SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10; -SELECT * FROM hits WHERE URL LIKE '%google%' ORDER BY EventTime LIMIT 10; -SELECT SearchPhrase FROM hits WHERE SearchPhrase <> '' ORDER BY EventTime LIMIT 10; -SELECT SearchPhrase FROM hits WHERE SearchPhrase <> '' ORDER BY SearchPhrase LIMIT 10; -SELECT SearchPhrase FROM hits WHERE SearchPhrase <> '' ORDER BY EventTime, SearchPhrase LIMIT 10; -SELECT CounterID, AVG(length(URL)) AS l, COUNT(*) AS c FROM hits WHERE URL <> '' GROUP BY CounterID HAVING COUNT(*) > 100000 ORDER BY l DESC LIMIT 25; -SELECT REGEXP_REPLACE(Referer, '^https?://(?:www\.)?([^/]+)/.*$', '\1') AS k, AVG(length(Referer)) AS l, COUNT(*) AS c, MIN(Referer) FROM hits WHERE Referer <> '' GROUP BY k HAVING COUNT(*) > 100000 ORDER BY l DESC LIMIT 25; -SELECT SUM(ResolutionWidth), SUM(ResolutionWidth + 1), SUM(ResolutionWidth + 2), SUM(ResolutionWidth + 3), SUM(ResolutionWidth + 4), SUM(ResolutionWidth + 5), SUM(ResolutionWidth + 6), SUM(ResolutionWidth + 7), SUM(ResolutionWidth + 8), SUM(ResolutionWidth + 9), SUM(ResolutionWidth + 10), SUM(ResolutionWidth + 11), SUM(ResolutionWidth + 12), SUM(ResolutionWidth + 13), SUM(ResolutionWidth + 14), SUM(ResolutionWidth + 15), SUM(ResolutionWidth + 16), SUM(ResolutionWidth + 17), SUM(ResolutionWidth + 18), SUM(ResolutionWidth + 19), SUM(ResolutionWidth + 20), SUM(ResolutionWidth + 21), SUM(ResolutionWidth + 22), SUM(ResolutionWidth + 23), SUM(ResolutionWidth + 24), SUM(ResolutionWidth + 25), SUM(ResolutionWidth + 26), SUM(ResolutionWidth + 27), SUM(ResolutionWidth + 28), SUM(ResolutionWidth + 29), SUM(ResolutionWidth + 30), SUM(ResolutionWidth + 31), SUM(ResolutionWidth + 32), SUM(ResolutionWidth + 33), SUM(ResolutionWidth + 34), SUM(ResolutionWidth + 35), SUM(ResolutionWidth + 36), SUM(ResolutionWidth + 37), SUM(ResolutionWidth + 38), SUM(ResolutionWidth + 39), SUM(ResolutionWidth + 40), SUM(ResolutionWidth + 41), SUM(ResolutionWidth + 42), SUM(ResolutionWidth + 43), SUM(ResolutionWidth + 44), SUM(ResolutionWidth + 45), SUM(ResolutionWidth + 46), SUM(ResolutionWidth + 47), SUM(ResolutionWidth + 48), SUM(ResolutionWidth + 49), SUM(ResolutionWidth + 50), SUM(ResolutionWidth + 51), SUM(ResolutionWidth + 52), SUM(ResolutionWidth + 53), SUM(ResolutionWidth + 54), SUM(ResolutionWidth + 55), SUM(ResolutionWidth + 56), SUM(ResolutionWidth + 57), SUM(ResolutionWidth + 58), SUM(ResolutionWidth + 59), SUM(ResolutionWidth + 60), SUM(ResolutionWidth + 61), SUM(ResolutionWidth + 62), SUM(ResolutionWidth + 63), SUM(ResolutionWidth + 64), SUM(ResolutionWidth + 65), SUM(ResolutionWidth + 66), SUM(ResolutionWidth + 67), SUM(ResolutionWidth + 68), SUM(ResolutionWidth + 69), SUM(ResolutionWidth + 70), SUM(ResolutionWidth + 71), SUM(ResolutionWidth + 72), SUM(ResolutionWidth + 73), SUM(ResolutionWidth + 74), SUM(ResolutionWidth + 75), SUM(ResolutionWidth + 76), SUM(ResolutionWidth + 77), SUM(ResolutionWidth + 78), SUM(ResolutionWidth + 79), SUM(ResolutionWidth + 80), SUM(ResolutionWidth + 81), SUM(ResolutionWidth + 82), SUM(ResolutionWidth + 83), SUM(ResolutionWidth + 84), SUM(ResolutionWidth + 85), SUM(ResolutionWidth + 86), SUM(ResolutionWidth + 87), SUM(ResolutionWidth + 88), SUM(ResolutionWidth + 89) FROM hits; -SELECT SearchEngineID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits WHERE SearchPhrase <> '' GROUP BY SearchEngineID, ClientIP ORDER BY c DESC LIMIT 10; -SELECT WatchID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits WHERE SearchPhrase <> '' GROUP BY WatchID, ClientIP ORDER BY c DESC LIMIT 10; -SELECT WatchID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits GROUP BY WatchID, ClientIP ORDER BY c DESC LIMIT 10; -SELECT URL, COUNT(*) AS c FROM hits GROUP BY URL ORDER BY c DESC LIMIT 10; -SELECT 1, URL, COUNT(*) AS c FROM hits GROUP BY 1, URL ORDER BY c DESC LIMIT 10; -SELECT ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3, COUNT(*) AS c FROM hits GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER BY c DESC LIMIT 10; -SELECT URL, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND DontCountHits = 0 AND IsRefresh = 0 AND URL <> '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10; -SELECT Title, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND DontCountHits = 0 AND IsRefresh = 0 AND Title <> '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10; -SELECT URL, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 AND IsLink <> 0 AND IsDownload = 0 GROUP BY URL ORDER BY PageViews DESC LIMIT 10 OFFSET 1000; -SELECT TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN (SearchEngineID = 0 AND AdvEngineID = 0) THEN Referer ELSE '' END AS Src, URL AS Dst, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 10 OFFSET 1000; -SELECT URLHash, EventDate, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 AND TraficSourceID IN (-1, 6) AND RefererHash = 3594120000172545465 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 10 OFFSET 100; -SELECT WindowClientWidth, WindowClientHeight, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 AND DontCountHits = 0 AND URLHash = 2868770270353813622 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC LIMIT 10 OFFSET 10000; -SELECT DATE_TRUNC('minute', EventTime) AS M, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-14' AND EventDate <= '2013-07-15' AND IsRefresh = 0 AND DontCountHits = 0 GROUP BY DATE_TRUNC('minute', EventTime) ORDER BY DATE_TRUNC('minute', EventTime) LIMIT 10 OFFSET 1000; diff --git a/pgrust/query b/pgrust/query deleted file mode 100755 index 9417d8e0d0..0000000000 --- a/pgrust/query +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -# query: one statement from stdin through psql \timing; seconds to stderr -set -e -. "$(dirname "$0")/env.sh" -query=$(cat) -out=$(printf '\\timing\n%s\n' "$query" | $PSQL -d test -t 2>&1) -status=$? -if printf '%s\n' "$out" | grep -q '^ERROR\|psql: error'; then printf '%s\n' "$out" >&2; exit 1; fi -printf '%s\n' "$out" | grep -v '^Time:' -time_ms=$(printf '%s\n' "$out" | grep -oP 'Time:\s+\K[0-9]+\.[0-9]+' | tail -n1) -[ -n "$time_ms" ] || { echo "no timing in psql output" >&2; exit 1; } -awk -v ms="$time_ms" 'BEGIN { printf "%.3f\n", ms / 1000 }' >&2 -exit "$status" diff --git a/pgrust/results/20260731/c6a.4xlarge.json b/pgrust/results/20260731/c6a.4xlarge.json deleted file mode 100644 index 27a758165b..0000000000 --- a/pgrust/results/20260731/c6a.4xlarge.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-07-31", - "machine": "c6a.4xlarge", - "cluster_size": 1, - "proprietary": "no", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","column-oriented","PostgreSQL compatible"], - "load_time": 214, - "data_size": 17563161742, - "concurrent_qps": 0.508, - "concurrent_error_ratio": 0.01, - "result": [ - [0.074, 0.006, 0.005], - [0.179, 0.01, 0.01], - [0.106, 0.005, 0.005], - [0.096, 0.005, 0.005], - [0.614, 0.437, 0.432], - [1.719, 0.793, 0.786], - [0.101, 0.005, 0.005], - [0.179, 0.009, 0.009], - [0.731, 0.45, 0.448], - [1.192, 0.592, 0.597], - [0.588, 0.137, 0.139], - [0.633, 0.158, 0.152], - [1.511, 0.619, 0.625], - [3.279, 2.254, 2.254], - [2.043, 1.096, 1.114], - [1.088, 0.701, 0.713], - [3.696, 1.674, 1.665], - [3.249, 0.466, 0.463], - [7.243, 2.583, 2.622], - [0.166, 0.002, 0.001], - [7.218, 0.063, 0.062], - [9.335, 0.025, 0.024], - [12.463, 0.089, 0.096], - [2.912, 0.041, 0.04], - [1.909, 0.035, 0.034], - [1.353, 0.074, 0.07], - [1.724, 0.038, 0.037], - [7.294, 0.435, 0.425], - [9.34, 4.016, 4.016], - [0.123, 0.005, 0.005], - [12.163, 0.578, 0.578], - [10.822, 0.653, 0.656], - [6.671, 3.255, 3.255], - [8.489, 6.57, 6.58], - [8.489, 6.529, 6.575], - [0.902, 0.647, 0.67], - [0.261, 0.054, 0.051], - [0.181, 0.023, 0.022], - [0.16, 0.021, 0.021], - [0.495, 0.325, 0.319], - [0.201, 0.023, 0.023], - [0.176, 0.021, 0.021], - [0.199, 0.055, 0.052] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260801/c6a.2xlarge.json b/pgrust/results/20260801/c6a.2xlarge.json deleted file mode 100644 index 623359614d..0000000000 --- a/pgrust/results/20260801/c6a.2xlarge.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-08-01", - "machine": "c6a.2xlarge", - "cluster_size": 1, - "proprietary": "no", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","column-oriented","PostgreSQL compatible"], - "load_time": 786, - "data_size": 17563161740, - "concurrent_qps": 0.165, - "concurrent_error_ratio": 0.01, - "result": [ - [0.087, 0.004, 0.004], - [0.26, 0.018, 0.017], - [0.125, 0.005, 0.005], - [0.114, 0.005, 0.005], - [0.859, 0.601, 0.602], - [1.701, 1.005, 1.019], - [0.116, 0.005, 0.005], - [0.244, 0.016, 0.014], - [0.973, 0.649, 0.654], - [1.182, 0.87, 0.883], - [0.613, 0.24, 0.239], - [0.64, 0.277, 0.275], - [2.735, 0.987, 1.006], - [3.838, 3.212, 3.341], - [3.518, 1.402, 1.418], - [1.121, 0.784, 0.769], - [3.23, 2.184, 2.202], - [7.668, 6.972, 7.194], - [6.104, 3.582, 3.589], - [0.255, 0.002, 0.002], - [7.237, 0.08, 0.079], - [9.314, 0.033, 0.033], - [12.443, 0.149, 0.146], - [2.565, 0.04, 0.039], - [2.092, 0.036, 0.035], - [1.344, 0.129, 0.126], - [1.995, 0.039, 0.038], - [7.298, 0.677, 0.676], - [17.519, 6.907, 6.929], - [0.121, 0.005, 0.005], - [13.338, 0.776, 0.765], - [13.183, 0.751, 0.754], - [7.304, 4.016, 4.057], - [9.56, 6.373, 6.292], - [9.776, 6.395, 6.267], - [23.262, 22.438, 22.429], - [0.234, 0.056, 0.061], - [0.257, 0.099, 0.096], - [0.186, 0.024, 0.024], - [0.457, 0.251, 0.251], - [0.203, 0.026, 0.026], - [0.178, 0.024, 0.024], - [0.221, 0.061, 0.067] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260801/c6a.4xlarge.json b/pgrust/results/20260801/c6a.4xlarge.json deleted file mode 100644 index 546673b971..0000000000 --- a/pgrust/results/20260801/c6a.4xlarge.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-08-01", - "machine": "c6a.4xlarge", - "cluster_size": 1, - "proprietary": "no", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","column-oriented","PostgreSQL compatible"], - "load_time": 223, - "data_size": 17563161742, - "concurrent_qps": 0.317, - "concurrent_error_ratio": 0, - "result": [ - [0.09, 0.005, 0.005], - [0.211, 0.011, 0.01], - [0.131, 0.006, 0.006], - [0.12, 0.005, 0.005], - [0.64, 0.427, 0.422], - [1.72, 0.776, 0.772], - [0.082, 0.005, 0.005], - [0.212, 0.009, 0.009], - [0.729, 0.444, 0.45], - [1.203, 0.587, 0.601], - [0.61, 0.139, 0.137], - [0.612, 0.151, 0.152], - [1.555, 0.671, 0.682], - [3.274, 2.165, 2.216], - [2.019, 1.07, 1.087], - [1.065, 0.701, 0.702], - [4.129, 1.657, 1.636], - [3.929, 0.46, 0.461], - [7.627, 2.564, 2.551], - [0.2, 0.002, 0.002], - [7.238, 0.063, 0.059], - [9.311, 0.025, 0.025], - [12.43, 0.092, 0.088], - [2.692, 0.04, 0.041], - [2.134, 0.034, 0.034], - [1.352, 0.072, 0.07], - [2.017, 0.039, 0.04], - [7.313, 0.425, 0.419], - [9.415, 4, 4.012], - [0.124, 0.005, 0.005], - [12.639, 0.569, 0.575], - [11.243, 0.633, 0.638], - [6.603, 3.155, 3.179], - [8.453, 6.407, 6.389], - [8.506, 6.434, 6.409], - [0.889, 0.635, 0.656], - [0.228, 0.054, 0.052], - [0.187, 0.023, 0.021], - [0.181, 0.021, 0.02], - [0.452, 0.32, 0.313], - [0.199, 0.024, 0.023], - [0.178, 0.021, 0.024], - [0.21, 0.055, 0.053] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260801/c6a.metal.json b/pgrust/results/20260801/c6a.metal.json deleted file mode 100644 index d74ffaf966..0000000000 --- a/pgrust/results/20260801/c6a.metal.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-08-01", - "machine": "c6a.metal", - "cluster_size": 1, - "proprietary": "no", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","column-oriented","PostgreSQL compatible"], - "load_time": 139, - "data_size": 17563161749, - "concurrent_qps": 1.305, - "concurrent_error_ratio": 0.003, - "result": [ - [0.083, 0.005, 0.007], - [0.149, 0.007, 0.007], - [0.141, 0.004, 0.005], - [0.102, 0.007, 0.006], - [0.341, 0.103, 0.106], - [1.814, 0.339, 0.348], - [0.109, 0.004, 0.006], - [0.18, 0.011, 0.013], - [0.68, 0.165, 0.156], - [1.592, 0.371, 0.365], - [0.693, 0.055, 0.055], - [0.735, 0.058, 0.053], - [2.037, 0.231, 0.228], - [2.751, 0.421, 0.413], - [2.716, 0.417, 0.391], - [1.181, 0.415, 0.395], - [4.346, 0.745, 0.733], - [4.875, 0.66, 0.652], - [7.306, 1.028, 0.993], - [0.158, 0.005, 0.003], - [7.303, 0.032, 0.032], - [9.617, 0.019, 0.019], - [12.361, 0.045, 0.045], - [3.069, 0.04, 0.039], - [1.79, 0.036, 0.035], - [1.541, 0.023, 0.023], - [1.876, 0.038, 0.037], - [7.359, 0.129, 0.144], - [6.961, 0.846, 0.84], - [0.108, 0.008, 0.009], - [7.509, 0.27, 0.26], - [12.626, 0.298, 0.304], - [6.813, 2.342, 2.237], - [8.921, 3.423, 3.603], - [8.885, 3.459, 3.505], - [2.197, 0.266, 0.25], - [0.214, 0.04, 0.035], - [0.193, 0.027, 0.027], - [0.181, 0.021, 0.02], - [0.339, 0.157, 0.16], - [0.19, 0.023, 0.018], - [0.165, 0.016, 0.013], - [0.191, 0.047, 0.051] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260801/c6a.xlarge.json b/pgrust/results/20260801/c6a.xlarge.json deleted file mode 100644 index 0454e03711..0000000000 --- a/pgrust/results/20260801/c6a.xlarge.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-08-01", - "machine": "c6a.xlarge", - "cluster_size": 1, - "proprietary": "no", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","column-oriented","PostgreSQL compatible"], - "load_time": 3586, - "data_size": 17563161738, - "concurrent_qps": 0.112, - "concurrent_error_ratio": 0, - "result": [ - [0.071, 0.005, 0.004], - [0.268, 0.031, 0.031], - [0.103, 0.005, 0.005], - [0.102, 0.005, 0.005], - [3.19, 2.759, 2.76], - [5.711, 3.306, 3.267], - [0.115, 0.005, 0.004], - [0.31, 0.027, 0.024], - [1.538, 1.111, 1.113], - [1.866, 1.475, 1.492], - [1.008, 0.447, 0.447], - [1.002, 0.514, 0.515], - [3.338, 1.432, 1.444], - [17.987, 14.54, 14.507], - [4.205, 1.918, 1.907], - [1.604, 1.201, 1.216], - [8.232, 6.749, 7.369], - [27.985, 27.8, 27.543], - [18.512, 15.308, 16.075], - [0.264, 0.003, 0.002], - [7.218, 0.14, 0.136], - [9.324, 0.058, 0.057], - [12.456, 0.257, 0.255], - [2.927, 0.042, 0.041], - [1.854, 0.035, 0.035], - [1.318, 0.244, 0.243], - [2.069, 0.038, 0.038], - [7.293, 1.338, 1.343], - [21.962, 11.273, 11.277], - [0.121, 0.005, 0.005], - [3.335, 1.195, 1.207], - [7.558, 1.234, 1.228], - [35.687, 36.349, 35.498], - [32.244, 30.026, 28.661], - [30.162, 30.205, 31.27], - [16.238, 16.037, 16.1], - [0.233, 0.082, 0.081], - [0.248, 0.115, 0.106], - [0.177, 0.028, 0.027], - [0.542, 0.31, 0.303], - [0.214, 0.032, 0.031], - [0.189, 0.029, 0.03], - [0.24, 0.082, 0.083] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260801/c7a.metal-48xl.json b/pgrust/results/20260801/c7a.metal-48xl.json deleted file mode 100644 index 94eb3b68a1..0000000000 --- a/pgrust/results/20260801/c7a.metal-48xl.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-08-01", - "machine": "c7a.metal-48xl", - "cluster_size": 1, - "proprietary": "no", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","column-oriented","PostgreSQL compatible"], - "load_time": 139, - "data_size": 17563161749, - "concurrent_qps": 1.142, - "concurrent_error_ratio": 0.004, - "result": [ - [0.091, 0.003, 0.008], - [0.15, 0.007, 0.006], - [0.132, 0.005, 0.007], - [0.111, 0.005, 0.01], - [0.354, 0.088, 0.088], - [1.738, 0.243, 0.248], - [0.115, 0.006, 0.009], - [0.161, 0.01, 0.013], - [0.673, 0.128, 0.135], - [1.434, 0.246, 0.263], - [0.691, 0.048, 0.047], - [0.741, 0.044, 0.04], - [1.897, 0.102, 0.103], - [2.635, 0.217, 0.211], - [2.622, 0.172, 0.166], - [0.875, 0.147, 0.14], - [4.086, 0.282, 0.303], - [4.292, 0.278, 0.276], - [7.195, 0.424, 0.409], - [0.174, 0.006, 0.004], - [7.31, 0.022, 0.02], - [9.625, 0.013, 0.01], - [12.375, 0.027, 0.023], - [3.128, 0.04, 0.04], - [2.035, 0.033, 0.034], - [1.549, 0.016, 0.018], - [1.996, 0.037, 0.037], - [7.344, 0.087, 0.072], - [6.785, 0.413, 0.398], - [0.135, 0.005, 0.01], - [8.025, 0.111, 0.102], - [11.389, 0.121, 0.111], - [6.103, 1.042, 1.053], - [8.063, 1.171, 1.166], - [8.045, 1.157, 1.162], - [2.165, 0.1, 0.102], - [0.187, 0.027, 0.028], - [0.183, 0.016, 0.018], - [0.167, 0.02, 0.018], - [0.289, 0.074, 0.081], - [0.186, 0.022, 0.02], - [0.172, 0.02, 0.019], - [0.197, 0.043, 0.043] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260801/c8g.4xlarge.json b/pgrust/results/20260801/c8g.4xlarge.json deleted file mode 100644 index 9cd5005097..0000000000 --- a/pgrust/results/20260801/c8g.4xlarge.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-08-01", - "machine": "c8g.4xlarge", - "cluster_size": 1, - "proprietary": "no", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","column-oriented","PostgreSQL compatible"], - "load_time": 207, - "data_size": 17563169934, - "concurrent_qps": 0.6, - "concurrent_error_ratio": 0.003, - "result": [ - [0.058, 0.003, 0.004], - [0.149, 0.007, 0.007], - [0.086, 0.003, 0.005], - [0.083, 0.003, 0.003], - [0.42, 0.223, 0.219], - [1.66, 0.341, 0.348], - [0.076, 0.003, 0.003], - [0.134, 0.005, 0.005], - [0.667, 0.217, 0.218], - [1.039, 0.297, 0.303], - [0.608, 0.071, 0.072], - [0.67, 0.077, 0.077], - [1.468, 0.259, 0.26], - [2.75, 0.805, 0.813], - [2.633, 0.341, 0.34], - [0.709, 0.231, 0.233], - [3.475, 0.6, 0.605], - [4.055, 0.135, 0.135], - [7.503, 0.952, 0.966], - [0.346, 0.001, 0.001], - [7.847, 0.035, 0.034], - [9.296, 0.013, 0.013], - [12.425, 0.061, 0.061], - [3.085, 0.031, 0.03], - [1.922, 0.029, 0.03], - [1.294, 0.03, 0.03], - [1.937, 0.032, 0.031], - [7.251, 0.2, 0.202], - [8.01, 1.942, 1.955], - [0.082, 0.004, 0.004], - [10.855, 0.172, 0.179], - [11.795, 0.166, 0.171], - [5.63, 1.006, 1.028], - [7.895, 1.615, 1.628], - [7.89, 1.602, 1.651], - [0.865, 0.229, 0.23], - [0.185, 0.02, 0.02], - [0.11, 0.009, 0.009], - [0.12, 0.016, 0.016], - [0.229, 0.081, 0.081], - [0.136, 0.02, 0.02], - [0.119, 0.017, 0.017], - [0.145, 0.046, 0.047] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260801/c8g.metal-48xl.json b/pgrust/results/20260801/c8g.metal-48xl.json deleted file mode 100644 index a4b9014930..0000000000 --- a/pgrust/results/20260801/c8g.metal-48xl.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-08-01", - "machine": "c8g.metal-48xl", - "cluster_size": 1, - "proprietary": "no", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","column-oriented","PostgreSQL compatible"], - "load_time": 129, - "data_size": 17563161749, - "concurrent_qps": 1.17, - "concurrent_error_ratio": 0.003, - "result": [ - [0.05, 0.004, 0.003], - [0.091, 0.003, 0.003], - [0.077, 0.003, 0.004], - [0.073, 0.004, 0.004], - [0.32, 0.069, 0.075], - [1.66, 0.232, 0.223], - [0.062, 0.005, 0.004], - [0.106, 0.006, 0.007], - [0.582, 0.115, 0.109], - [1.323, 0.184, 0.209], - [0.637, 0.034, 0.032], - [0.672, 0.034, 0.034], - [2.564, 0.085, 0.088], - [2.596, 0.228, 0.228], - [2.457, 0.143, 0.176], - [1.105, 0.114, 0.125], - [4.905, 0.284, 0.297], - [6.37, 0.19, 0.191], - [7.19, 0.438, 0.467], - [0.118, 0.003, 0.002], - [7.243, 0.015, 0.015], - [9.555, 0.007, 0.007], - [12.297, 0.021, 0.021], - [2.603, 0.032, 0.031], - [1.571, 0.03, 0.03], - [1.507, 0.013, 0.012], - [1.51, 0.033, 0.034], - [7.301, 0.084, 0.079], - [9.228, 0.351, 0.333], - [0.071, 0.004, 0.004], - [9.64, 0.079, 0.084], - [12.167, 0.104, 0.1], - [6.558, 0.786, 0.818], - [8.6, 0.867, 1.024], - [8.791, 0.917, 0.964], - [5.292, 0.138, 0.125], - [0.128, 0.024, 0.026], - [0.106, 0.017, 0.011], - [0.117, 0.015, 0.015], - [0.203, 0.082, 0.075], - [0.128, 0.016, 0.016], - [0.108, 0.01, 0.01], - [0.142, 0.042, 0.042] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260921/c6a.2xlarge.json b/pgrust/results/20260921/c6a.2xlarge.json deleted file mode 100644 index 724c169f86..0000000000 --- a/pgrust/results/20260921/c6a.2xlarge.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-09-21", - "machine": "c6a.2xlarge", - "cluster_size": 1, - "proprietary": "yes", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","PostgreSQL compatible","column-oriented"], - "load_time": 437, - "data_size": 9199140673, - "concurrent_qps": 0.635, - "concurrent_error_ratio": 0.504, - "result": [ - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.392, 0.128, 0.128], - [0.479, 0.051, 0.05], - [0.002, 0.001, 0.001], - [0.052, 0.006, 0.005], - [0.572, 0.187, 0.184], - [0.845, 0.27, 0.273], - [0.343, 0.038, 0.038], - [0.408, 0.045, 0.043], - [0.561, 0.063, 0.062], - [0.898, 0.178, 0.177], - [0.671, 0.108, 0.107], - [0.396, 0.134, 0.135], - [1.048, 0.293, 0.292], - [0.062, 0.004, 0.004], - [2.413, 0.692, 0.697], - [0.15, 0.005, 0.005], - [3.198, 0.044, 0.044], - [3.93, 0.026, 0.025], - [7.14, 0.044, 0.044], - [0.915, 0.013, 0.013], - [0.081, 0.005, 0.003], - [0.227, 0.004, 0.004], - [0.089, 0.003, 0.003], - [1.098, 0.194, 0.193], - [3.276, 0.782, 0.788], - [0.005, 0.002, 0.002], - [0.66, 0.106, 0.103], - [2.817, 0.112, 0.112], - [2.612, 0.368, 0.364], - [3.25, 0.208, 0.209], - [3.245, 0.206, 0.207], - [0.322, 0.151, 0.149], - [0.072, 0.01, 0.01], - [0.022, 0.006, 0.004], - [0.068, 0.005, 0.005], - [0.121, 0.029, 0.024], - [0.045, 0.005, 0.005], - [0.05, 0.007, 0.007], - [0.044, 0.007, 0.007] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260921/c6a.4xlarge.json b/pgrust/results/20260921/c6a.4xlarge.json deleted file mode 100644 index 4f16dbe60f..0000000000 --- a/pgrust/results/20260921/c6a.4xlarge.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-09-21", - "machine": "c6a.4xlarge", - "cluster_size": 1, - "proprietary": "yes", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","PostgreSQL compatible","column-oriented"], - "load_time": 276, - "data_size": 9199140676, - "concurrent_qps": 9.143, - "concurrent_error_ratio": 0.068, - "result": [ - [0.003, 0.001, 0.001], - [0.003, 0.001, 0.001], - [0.003, 0.001, 0.001], - [0.003, 0.001, 0.001], - [0.276, 0.068, 0.069], - [0.331, 0.028, 0.029], - [0.004, 0.001, 0.001], - [0.035, 0.004, 0.005], - [0.379, 0.104, 0.109], - [0.58, 0.198, 0.203], - [0.221, 0.022, 0.024], - [0.249, 0.026, 0.028], - [0.339, 0.043, 0.043], - [0.602, 0.163, 0.165], - [0.408, 0.071, 0.071], - [0.254, 0.072, 0.073], - [0.677, 0.183, 0.183], - [0.076, 0.003, 0.004], - [2.52, 0.56, 0.563], - [0.105, 0.005, 0.005], - [3.277, 0.023, 0.023], - [4.009, 0.016, 0.017], - [7.197, 0.034, 0.035], - [0.698, 0.013, 0.013], - [0.052, 0.007, 0.006], - [0.152, 0.004, 0.004], - [0.068, 0.003, 0.003], - [0.805, 0.128, 0.13], - [3.266, 0.503, 0.515], - [0.006, 0.002, 0.002], - [0.401, 0.089, 0.088], - [2.819, 0.078, 0.078], - [2.616, 0.217, 0.214], - [3.28, 0.131, 0.133], - [3.28, 0.13, 0.131], - [0.199, 0.086, 0.088], - [0.067, 0.007, 0.009], - [0.021, 0.004, 0.005], - [0.065, 0.004, 0.004], - [0.14, 0.03, 0.028], - [0.033, 0.003, 0.005], - [0.037, 0.004, 0.006], - [0.033, 0.004, 0.007] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260921/c6a.metal.json b/pgrust/results/20260921/c6a.metal.json deleted file mode 100644 index 554537aa64..0000000000 --- a/pgrust/results/20260921/c6a.metal.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-09-21", - "machine": "c6a.metal", - "cluster_size": 1, - "proprietary": "yes", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","PostgreSQL compatible","column-oriented"], - "load_time": 128, - "data_size": 9199140683, - "concurrent_qps": 13.527, - "concurrent_error_ratio": 0, - "result": [ - [0.014, 0.001, 0.001], - [0.009, 0.001, 0.002], - [0.007, 0.003, 0.001], - [0.009, 0.001, 0.001], - [0.196, 0.039, 0.038], - [0.245, 0.022, 0.022], - [0.007, 0.001, 0.002], - [0.039, 0.004, 0.003], - [0.261, 0.057, 0.056], - [0.437, 0.141, 0.141], - [0.201, 0.014, 0.014], - [0.221, 0.018, 0.018], - [0.267, 0.028, 0.028], - [0.425, 0.067, 0.064], - [0.301, 0.043, 0.043], - [0.203, 0.041, 0.042], - [0.472, 0.104, 0.101], - [0.08, 0.03, 0.004], - [2.446, 0.355, 0.358], - [0.087, 0.004, 0.004], - [4.207, 0.009, 0.009], - [4.845, 0.011, 0.01], - [7.955, 0.022, 0.021], - [0.82, 0.026, 0.026], - [0.051, 0.009, 0.003], - [0.123, 0.006, 0.005], - [0.054, 0.009, 0.003], - [1.461, 0.074, 0.076], - [4.174, 1.659, 1.612], - [0.008, 0.003, 0.002], - [0.283, 0.064, 0.064], - [2.826, 0.047, 0.046], - [2.62, 0.108, 0.106], - [4.159, 0.076, 0.074], - [4.162, 0.077, 0.075], - [0.149, 0.048, 0.049], - [0.07, 0.011, 0.01], - [0.021, 0.005, 0.005], - [0.075, 0.004, 0.004], - [0.128, 0.032, 0.033], - [0.035, 0.004, 0.004], - [0.037, 0.006, 0.005], - [0.034, 0.004, 0.004] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260921/c6a.xlarge.json b/pgrust/results/20260921/c6a.xlarge.json deleted file mode 100644 index 4cda635e51..0000000000 --- a/pgrust/results/20260921/c6a.xlarge.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-09-21", - "machine": "c6a.xlarge", - "cluster_size": 1, - "proprietary": "yes", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","PostgreSQL compatible","column-oriented"], - "load_time": 4226, - "data_size": 9265914391, - "concurrent_qps": 0.345, - "concurrent_error_ratio": 0.662, - "result": [ - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.703, 0.249, 0.251], - [0.892, 0.094, 0.093], - [0.002, 0.001, 0.001], - [0.089, 0.007, 0.007], - [1.033, 0.356, 0.356], - [1.522, 0.519, 0.519], - [0.588, 0.063, 0.063], - [0.754, 0.077, 0.078], - [1.129, 0.134, 0.136], - [1.712, 0.342, 0.34], - [1.265, 0.201, 0.203], - [0.706, 0.256, 0.257], - [1.983, 0.563, 0.566], - [0.09, 0.003, 0.003], - [9.395, 8.291, 7.604], - [0.352, 0.007, 0.007], - [4.085, 0.087, 0.087], - [5.143, 0.046, 0.046], - [19.336, 9.031, 0.075], - [1.297, 0.018, 0.018], - [0.151, 0.013, 0.003], - [0.371, 0.004, 0.004], - [0.163, 0.017, 0.003], - [1.597, 0.351, 0.348], - [4.943, 1.546, 1.479], - [0.005, 0.002, 0.002], - [1.282, 0.194, 0.191], - [2.955, 0.202, 0.201], - [4.622, 1.23, 1.226], - [5.249, 0.537, 0.491], - [5.374, 0.515, 0.484], - [0.599, 0.293, 0.294], - [0.123, 0.01, 0.01], - [0.04, 0.005, 0.004], - [0.113, 0.005, 0.005], - [0.232, 0.029, 0.029], - [0.046, 0.005, 0.005], - [0.038, 0.005, 0.006], - [0.03, 0.007, 0.008] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260921/c7a.metal-48xl.json b/pgrust/results/20260921/c7a.metal-48xl.json deleted file mode 100644 index b338486170..0000000000 --- a/pgrust/results/20260921/c7a.metal-48xl.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-09-21", - "machine": "c7a.metal-48xl", - "cluster_size": 1, - "proprietary": "yes", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","PostgreSQL compatible","column-oriented"], - "load_time": 59, - "data_size": 9199140683, - "concurrent_qps": 49.592, - "concurrent_error_ratio": 0, - "result": [ - [0.007, 0.002, 0.002], - [0.007, 0.002, 0.002], - [0.013, 0.002, 0.002], - [0.005, 0.004, 0.002], - [0.111, 0.016, 0.017], - [0.121, 0.01, 0.011], - [0.005, 0.002, 0.002], - [0.021, 0.003, 0.003], - [0.151, 0.022, 0.026], - [0.289, 0.037, 0.04], - [0.101, 0.008, 0.007], - [0.109, 0.008, 0.01], - [0.131, 0.012, 0.013], - [0.399, 0.021, 0.021], - [0.139, 0.015, 0.016], - [0.097, 0.016, 0.016], - [0.397, 0.033, 0.032], - [0.079, 0.026, 0.003], - [2.281, 0.074, 0.077], - [0.078, 0.002, 0.002], - [3.117, 0.004, 0.004], - [3.932, 0.006, 0.006], - [7.101, 0.008, 0.007], - [0.712, 0.031, 0.033], - [0.053, 0.007, 0.002], - [0.06, 0.005, 0.006], - [0.049, 0.002, 0.002], - [0.379, 0.026, 0.025], - [3.209, 0.086, 0.087], - [0.008, 0.003, 0.003], - [0.315, 0.018, 0.019], - [2.827, 0.018, 0.018], - [2.623, 0.038, 0.038], - [3.116, 0.027, 0.028], - [3.11, 0.028, 0.027], - [0.07, 0.017, 0.017], - [0.063, 0.009, 0.009], - [0.019, 0.004, 0.005], - [0.059, 0.004, 0.004], - [0.12, 0.026, 0.027], - [0.027, 0.004, 0.004], - [0.025, 0.005, 0.005], - [0.023, 0.003, 0.003] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260921/c8g.4xlarge.json b/pgrust/results/20260921/c8g.4xlarge.json deleted file mode 100644 index 5ed9f59690..0000000000 --- a/pgrust/results/20260921/c8g.4xlarge.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-09-21", - "machine": "c8g.4xlarge", - "cluster_size": 1, - "proprietary": "yes", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","PostgreSQL compatible","column-oriented"], - "load_time": 145, - "data_size": 9199140676, - "concurrent_qps": 31.188, - "concurrent_error_ratio": 0.033, - "result": [ - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.138, 0.031, 0.031], - [0.194, 0.011, 0.011], - [0.002, 0.001, 0.001], - [0.023, 0.002, 0.003], - [0.188, 0.04, 0.041], - [0.273, 0.063, 0.064], - [0.152, 0.011, 0.012], - [0.175, 0.013, 0.014], - [0.208, 0.016, 0.017], - [0.405, 0.049, 0.049], - [0.302, 0.026, 0.026], - [0.15, 0.035, 0.035], - [0.398, 0.062, 0.063], - [0.052, 0.002, 0.002], - [2.313, 0.203, 0.206], - [0.075, 0.002, 0.002], - [3.095, 0.007, 0.007], - [3.808, 0.008, 0.008], - [7.092, 0.014, 0.014], - [0.667, 0.007, 0.007], - [0.046, 0.007, 0.004], - [0.109, 0.003, 0.003], - [0.051, 0.002, 0.005], - [0.416, 0.049, 0.048], - [3.212, 0.219, 0.219], - [0.005, 0.002, 0.002], - [0.245, 0.028, 0.028], - [2.814, 0.03, 0.03], - [2.608, 0.073, 0.073], - [3.101, 0.043, 0.044], - [3.1, 0.043, 0.044], - [0.168, 0.04, 0.04], - [0.049, 0.003, 0.004], - [0.016, 0.003, 0.003], - [0.051, 0.003, 0.003], - [0.096, 0.013, 0.014], - [0.021, 0.002, 0.002], - [0.022, 0.003, 0.003], - [0.021, 0.003, 0.003] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260921/c8g.metal-48xl.json b/pgrust/results/20260921/c8g.metal-48xl.json deleted file mode 100644 index 844c754360..0000000000 --- a/pgrust/results/20260921/c8g.metal-48xl.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-09-21", - "machine": "c8g.metal-48xl", - "cluster_size": 1, - "proprietary": "yes", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","PostgreSQL compatible","column-oriented"], - "load_time": 45, - "data_size": 9199140683, - "concurrent_qps": 78.333, - "concurrent_error_ratio": 0, - "result": [ - [0.003, 0.001, 0.001], - [0.003, 0.001, 0.001], - [0.004, 0.001, 0.001], - [0.003, 0.001, 0.001], - [0.144, 0.009, 0.009], - [0.133, 0.005, 0.005], - [0.003, 0.001, 0.001], - [0.019, 0.003, 0.002], - [0.265, 0.013, 0.013], - [0.231, 0.028, 0.029], - [0.132, 0.005, 0.005], - [0.137, 0.006, 0.006], - [0.142, 0.007, 0.007], - [0.395, 0.018, 0.018], - [0.182, 0.011, 0.011], - [0.128, 0.009, 0.01], - [0.453, 0.021, 0.02], - [0.078, 0.026, 0.002], - [2.304, 0.07, 0.07], - [0.076, 0.002, 0.001], - [3.189, 0.003, 0.003], - [3.966, 0.004, 0.004], - [7.141, 0.006, 0.006], - [0.76, 0.017, 0.023], - [0.069, 0.011, 0.002], - [0.066, 0.004, 0.004], - [0.075, 0.002, 0.002], - [0.731, 0.021, 0.021], - [3.198, 0.073, 0.07], - [0.005, 0.002, 0.002], - [0.313, 0.013, 0.013], - [2.821, 0.012, 0.011], - [2.615, 0.021, 0.021], - [3.17, 0.014, 0.014], - [3.17, 0.014, 0.014], - [0.111, 0.012, 0.012], - [0.06, 0.004, 0.003], - [0.017, 0.002, 0.002], - [0.061, 0.003, 0.003], - [0.116, 0.014, 0.013], - [0.02, 0.003, 0.003], - [0.02, 0.003, 0.003], - [0.018, 0.002, 0.002] -] - } - \ No newline at end of file diff --git a/pgrust/results/20260922/c6a.large.json b/pgrust/results/20260922/c6a.large.json deleted file mode 100644 index 009499200a..0000000000 --- a/pgrust/results/20260922/c6a.large.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "system": "pgrust", - "date": "2026-09-22", - "machine": "c6a.large", - "cluster_size": 1, - "proprietary": "yes", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust","PostgreSQL compatible","column-oriented"], - "load_time": 12022, - "data_size": 9265914389, - "concurrent_qps": 0.535, - "concurrent_error_ratio": 0.71, - "result": [ - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [0.002, 0.001, 0.001], - [1.35, 0.482, 0.482], - [1.812, 0.186, 0.186], - [0.002, 0.001, 0.001], - [0.194, 0.012, 0.012], - [2.043, 0.709, 0.738], - [7.652, 6.678, 5.462], - [1.24, 0.124, 0.127], - [1.489, 0.151, 0.153], - [2.214, 0.266, 0.266], - [3.434, 0.739, 0.706], - [2.598, 0.398, 0.4], - [1.377, 0.509, 0.507], - [10.147, 7.168, 7.196], - [0.082, 0.027, 0.003], - [31.617, 43.121, 18.425], - [0.678, 0.013, 0.013], - [13.457, 1.714, 0.188], - [18.9, 6.107, 0.129], - [37.219, 36.557, 0.305], - [1.555, 0.029, 0.03], - [0.271, 0.008, 0.003], - [0.798, 0.005, 0.005], - [0.169, 0.023, 0.004], - [3.116, 0.699, 0.696], - [31.506, 108.909, 107.917], - [0.005, 0.002, 0.002], - [2.526, 0.391, 0.391], - [4.92, 0.44, 0.453], - [7.121, 3.377, 3.456], - [32.663, 10.794, 5.313], - [42.38, 11.888, 1.048], - [1.176, 0.581, 0.58], - [0.208, 0.015, 0.015], - [0.054, 0.005, 0.006], - [0.2, 0.005, 0.005], - [0.376, 0.05, 0.049], - [0.063, 0.005, 0.005], - [0.052, 0.007, 0.007], - [0.043, 0.011, 0.011] -] - } - \ No newline at end of file diff --git a/pgrust/start b/pgrust/start deleted file mode 100755 index 06e236fe0b..0000000000 --- a/pgrust/start +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set -eu -. "$(dirname "$0")/env.sh" -$PSQL -tAc 'SELECT 1' >/dev/null 2>&1 && exit 0 -sudo install -d -o "$PGRUST_USER" -g "$PGRUST_USER" "$PGSOCKDIR" -# The server runs as $PGRUST_USER (it refuses root; the datadir is owned by that user). The rlimit and -# RUST_MIN_STACK match max_stack_depth=60000. -$AS_PG env PGRUST_PREFIX="$PGRUST_PREFIX" PGDATA="$PGDATA" PGPORT="$PGPORT" PGRUST_HOME="$PGRUST_HOME" bash -c ' - ulimit -s 65520 2>/dev/null || true - nohup env RUST_MIN_STACK=67108864 \ - PGRUST_TZDIR=/usr/share/zoneinfo PGRUST_PGSHAREDIR="$PGRUST_PREFIX/share/postgresql" \ - PGRUST_PARALLEL_COPY=1 PGRUST_PARQUET_PARALLEL=1 \ - "$PGRUST_PREFIX/bin/postgres" -D "$PGDATA" -p "$PGPORT" >> "$PGRUST_HOME/server.log" 2>&1 < /dev/null & -' -exit 0 diff --git a/pgrust/stop b/pgrust/stop deleted file mode 100755 index fadad26dda..0000000000 --- a/pgrust/stop +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -. "$(dirname "$0")/env.sh" -PIDF="$PGDATA/postmaster.pid" -[ -f "$PIDF" ] && kill -INT "$(head -1 "$PIDF")" 2>/dev/null -for i in $(seq 1 120); do [ -f "$PIDF" ] && kill -0 "$(head -1 "$PIDF")" 2>/dev/null || exit 0; sleep 0.5; done -exit 0 diff --git a/pgrust/template.json b/pgrust/template.json deleted file mode 100644 index b1f0fde532..0000000000 --- a/pgrust/template.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "system": "pgrust", - "version": "v0.4-preview", - "proprietary": "yes", - "hardware": "cpu", - "tuned": "no", - "tags": ["Rust", "PostgreSQL compatible", "column-oriented"] -}