dbt2
OSDL-DBT-2 test kit
dbt2 : OSDL-DBT-2 test kit
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 3220 | dbt2 | dbt2 | 0.61.7 |
LANG | Artistic-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | faker pg_mockable pgtap pgsqlmock omni_test random tsm_system_time tsm_system_rows |
Package/source version 0.61.7; SQL extension version 0.45.0. This package contains the PostgreSQL stored-function extension, not the full DBT-2 benchmark toolchain.
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 0.61.7 |
18 17 16 15 14 | dbt2 |
- |
| RPM | PGDG | 0.61.7 |
18 17 16 15 14 | dbt2-pg$v-extensions |
- |
| DEB | PIGSTY | 0.61.7 |
18 17 16 15 14 | postgresql-$v-dbt2 |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PGDG 0.53.7 | PGDG 0.53.7 | PGDG 0.53.7 |
| el8.aarch64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PGDG 0.53.7 | PGDG 0.53.7 | PGDG 0.53.7 |
| el9.x86_64 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 |
| el9.aarch64 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 |
| el10.x86_64 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 |
| el10.aarch64 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 | PGDG 0.61.7 |
| d12.x86_64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 |
| d12.aarch64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 |
| d13.x86_64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 |
| d13.aarch64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 |
| u22.x86_64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 |
| u22.aarch64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 |
| u24.x86_64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 |
| u24.aarch64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 |
| u26.x86_64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 |
| u26.aarch64 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 | PIGSTY 0.61.7 |
Source
github.com/osdldbt/dbt2
dbt2-0.61.7.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
dbt2 is a TPC-C benchmark implementation for PostgreSQL. The extension provides stored procedures that implement the five standard TPC-C transaction types.
TPC-C Transaction Types
The extension provides stored procedures for the five standard TPC-C transactions:
- New Order: Creates a new order with multiple line items, updating stock levels
- Payment: Processes a customer payment, updating warehouse and district balances
- Order Status: Retrieves the status of a customer’s most recent order
- Delivery: Processes pending orders for delivery across all districts
- Stock Level: Checks the count of recently sold items with low stock
Benchmark Workflow
The dbt2 system consists of:
- Database extension (
dbt2): Stored procedures for TPC-C transactions - Data loader: Populates the benchmark tables with TPC-C data
- Driver: Generates transaction workloads simulating terminal users
- Client: Manages connections between the driver and database
Running Benchmarks
The benchmark is typically run using the dbt2 command-line tools (separate from the extension):
TPC-C Schema
The benchmark uses these standard tables: warehouse, district, customer, history, new_order, orders, order_line, item, and stock.
Refer to the doc/ directory in the repository for detailed configuration and tuning options.