cube
data type for multidimensional cubes
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
cube | 1.5 | TYPE | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3950 | cube | No | Yes | No | Yes | Yes | No | - |
| Related | seg prefix unit ip4r pgmp numeral pg_rational uint uint128 ltree |
|---|---|
| Depended By | earthdistance pg4ml |
Version
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.5 | 1.5 | 1.5 | 1.5 | 1.5 |
Install
Note: This is a built-in contrib extension of PostgreSQL
Usage
The cube extension provides a data type for representing multi-dimensional cubes (up to 100 dimensions).
Input Formats
Operators
| Operator | Description |
|---|---|
&& | Overlaps |
@> | Contains |
<@ | Contained in |
-> | Extract n-th coordinate |
<-> | Euclidean distance |
<#> | Taxicab (L-1) distance |
<=> | Chebyshev (L-inf) distance |
Functions
GiST Index with KNN Search
Dimension Handling
When operating on cubes of different dimensions, the lower-dimensional cube is treated as having zeroes for missing coordinates.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)