spat
Redis-like In-Memory DB Embedded in Postgres
spat : Redis-like In-Memory DB Embedded in Postgres
Overview
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | redis_fdw redis pgmemcache mongo_fdw kafka_fdw documentdb documentdb_core documentdb_distributed |
Alpha Stage!
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.1.0a4 |
18 17 16 15 14 | spat |
- |
| RPM | PGDG | 0.1.0a4 |
18 17 16 15 14 | spat_$v |
- |
| DEB | PIGSTY | 0.1.0a4 |
18 17 16 15 14 | postgresql-$v-spat |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| el8.aarch64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| el9.x86_64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| el9.aarch64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| el10.x86_64 | MISS | MISS | MISS | MISS | MISS |
| el10.aarch64 | MISS | MISS | MISS | MISS | MISS |
| d12.x86_64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| d12.aarch64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| d13.x86_64 | MISS | MISS | MISS | MISS | MISS |
| d13.aarch64 | MISS | MISS | MISS | MISS | MISS |
| u22.x86_64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| u22.aarch64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| u24.x86_64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| u24.aarch64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| u26.x86_64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
| u26.aarch64 | MISS | PIGSTY 0.1.0 | MISS | MISS | MISS |
Source
github.com/Florents-Tselai/spat
spat-0.1.0a4.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
An in-memory key-value data structure server embedded in PostgreSQL shared memory. Keys are strings; values can be strings, lists, sets, or hashes.
Enabling
Strings
Sets
Lists
Hashes
Generic Operations
Multiple Databases
Important Notes
- Data is stored in PostgreSQL shared memory and is not durable – lost on restart
- Operations are not transactional – ROLLBACK does not undo spat changes
- Changes are immediately visible across all sessions (no MVCC isolation)
- Per-key locks ensure concurrent write safety