pg_ratelimit
alohadb · AlohaDB: Shared-memory rate limits and session values
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102399 | pg_ratelimit | alohadb | 1.0 | FEAT | MIT | C |
PostgreSQL · 18
Usage
Sources:
pg_ratelimit 1.0 provides shared-memory rate limits and session values. This preview module is scoped to the PostgreSQL 18 fork in AlohaDB 21.1.0; stock PostgreSQL compatibility is not established.
Workflow
Installation requires a superuser; function use also requires the appropriate object privileges.
Operational boundaries
Preload pg_ratelimit and restart before rate-limit operations. pg_ratelimit.max_entries bounds shared entries; token-bucket and sliding-window helpers track quotas, while session_set/get/touch manage expiring session records. Shared rate-limit state is lost on restart and is not transactional application data. Namespace keys and restrict reset/session operations; shared keys are not a tenant-security boundary.
This module corresponds to the former upstream name alohadb_ratelimit. Follow AlohaDB’s cluster/object conversion procedure and do not substitute an unrelated implementation with a similar name. Rehearse dependencies, privileges and backup restoration before upgrades.