tsm_system_rows
TABLESAMPLE method which accepts number of rows as a limit
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
tsm_system_rows | 1.0 | FUNC | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4910 | tsm_system_rows | No | Yes | No | Yes | Yes | No | - |
| Related | faker dbt2 random tsm_system_time pg_mockable pgsqlmock pgtap omni_test |
|---|---|
| Depended By | documentdb |
Version
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
Install
Note: This is a built-in contrib extension of PostgreSQL
Usage
Provides the SYSTEM_ROWS table sampling method that returns exactly the specified number of rows.
TABLESAMPLE Method
SYSTEM_ROWS(count int) – maximum number of rows to return.
Examples
Performs block-level sampling (may exhibit clustering effects with small samples). Returns all rows if the table has fewer rows than requested. Does not support REPEATABLE.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)