floatfile
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4280 | floatfile | No | Yes | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.3.1 | 1817161514 | floatfile | - |
| RPM | PIGSTY | 1.3.1 | 1817161514 | floatfile_$v | - |
| DEB | PIGSTY | 1.3.1 | 1817161514 | postgresql-$v-floatfile | - |
Build
You can build the DEB packages for floatfile using pig build:
Install
You can install floatfile directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
Store float arrays in individual files for very fast querying without MVCC overhead. Ideal for time series data requiring low-latency reads and low-cost appends.
Functions
Save a float array to a file
Load a float array from a file
Append values to an existing file
Delete a floatfile
Tablespace Variants
All functions accept an optional tablespace name as first argument:
Histogram Functions
Compute histograms directly from floatfiles (useful when arrays exceed the 1GB Postgres limit):
Concurrency
Functions use PostgreSQL advisory locks: load_floatfile takes a shared lock; save, extend, and drop take exclusive locks.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)