Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/src/test/modules/injection_points/sql/   (Postgres Database Version 18.4©)  Datei vom 11.4.2026 mit Größe 802 B image not shown  

Quelle  hashagg.sql

  Sprache: SQL
 

-- Test for hash aggregation
CREATE EXTENSION injection_points;

SELECT injection_points_set_local();

SELECT injection_points_attach('hash-aggregate-enter-spill-mode''notice');
SELECT injection_points_attach('hash-aggregate-process-batch''notice');

-- force partition fan-out to 1
SELECT injection_points_attach('hash-aggregate-single-partition''notice');

-- force spilling after 1000 groups
SELECT injection_points_attach('hash-aggregate-spill-1000''notice');

CREATE TABLE hashagg_ij(x INTEGER);
INSERT INTO hashagg_ij SELECT g FROM generate_series(1,5100) g;

SET max_parallel_workers=0;
SET max_parallel_workers_per_gather=0;
SET enable_sort=FALSE;
SET work_mem='4MB';

SELECT COUNT(*) FROM (SELECT DISTINCT x FROM hashagg_ij) s;

DROP TABLE hashagg_ij;
DROP EXTENSION injection_points;

Messung V0.5 in Prozent
C=93 H=95 G=93

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-08-09) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.