Skip to main content

Module lookup

Module lookup 

Source
Expand description

PostgreSQL on-demand lookup source for cache-miss fallback.

A deadpool-pooled client issues one parameterized WHERE pk = ANY($1) per fetch, so all missed keys of a probe fold into one index-served round trip. KeyAligner handles key decode and result realignment.

TLS is server-auth via rustls: verified chain and hostname is the default, using ssl.ca.cert.path when set and Mozilla roots otherwise. Plaintext is available only through explicit ssl.mode=disable. Weaker libpq modes are rejected rather than presented as aliases. v1 limits: single-column key, server-auth only (no mTLS client certs).

Structsยง

PostgresLookupSource
PostgreSQL lookup source for on-demand/partial cache mode.
PostgresLookupSourceConfig
Configuration for PostgresLookupSource.