pg_pacs/sql/pgbench.sql
Cédric Villemain 988192cbe1 Add a simple pgbench
Very naive, just to quickly evaluate perf as w go.
2024-10-22 13:45:17 +02:00

10 lignes
355 o
SQL

set client_min_messages to WARNING;
select pacs_create_measure((:client_id)::Name);
select pacs_increment_measure((:client_id)::Name);
select pacs_get_measure((:client_id)::Name);
select pacs_reset_measure((:client_id)::Name);
select pacs_drop_measure((:client_id)::Name);
\set measure 100 + random(1,5)
select pacs_increment_measure((:measure)::Name);